Software & AI automation+880 1612 946622[email protected]

WordPress Security Checklist: Steps to Protect Your Website

Red padlock on a computer keyboard representing WordPress security

Quick answer: To secure a WordPress site, keep WordPress, themes and plugins updated, use strong unique passwords with two-factor login, limit admin accounts, keep tested backups off the website itself, add a firewall and remove anything you do not use.

Why WordPress sites get attacked

WordPress powers a very large share of websites, so attackers target it and the plugins and themes built for it. Most successful attacks use outdated software, weak passwords or leftover files, all of which you can control.

Accounts and logins

  • Use strong, unique passwords for every account, stored in a password manager.
  • Turn on two-factor authentication for every administrator.
  • Limit administrators. Give people the lowest role that lets them do their job.
  • Remove old users and rename or remove the default admin username.
  • Limit login attempts to slow down password guessing.

Updates and software

  • Update WordPress core, plugins and themes soon after releases, and check them after major updates.
  • Delete unused plugins and themes, not just deactivate them.
  • Use plugins and themes from trusted sources that are actively updated.
  • Keep your PHP version supported by your host.

Backups

  • Automate backups of files and the database.
  • Store them away from the website. A backup file left in a public folder can be downloaded by anyone.
  • Test a restore so you know the backup works.

Server and file settings

  • Use HTTPS across the whole site.
  • Turn off file editing in the dashboard by adding the line define(‘DISALLOW_FILE_EDIT’, true); to wp-config.php.
  • Protect wp-config.php with strict file permissions.
  • Turn off debug display on a live site.
  • Disable directory listing and remove readme and licence files that reveal versions.

Protection and monitoring

  • Add a firewall, such as a web application firewall or your host’s protection.
  • Scan for malware regularly.
  • Turn on activity logging so you can see who changed what.
  • Watch for warnings in Google Search Console and from your host.

What to do if your site is hacked

  1. Put the site into maintenance mode or take it offline.
  2. Change every password, including hosting, database and FTP.
  3. Restore a clean backup from before the problem.
  4. Update everything and remove unused plugins and users.
  5. Find and close the entry point, then monitor closely.

Winmac System builds and maintains WordPress websites and offers a WordPress site audit and cyber security support. Read our longer guide on why a WordPress site is not secure.

Frequently asked questions

What is the most important WordPress security step?

Keeping WordPress, themes and plugins updated, because most attacks use known problems that updates fix. Strong logins with two-factor authentication come a close second.

Do I need a security plugin for WordPress?

A reputable security plugin or a firewall service adds protection such as login limits, malware scanning and blocking of bad traffic. It supports good habits but does not replace them.

How often should I back up my WordPress site?

Back up as often as your content changes, such as daily for an active shop. Store backups away from the website and test restoring them.

What should I do if my WordPress site is hacked?

Take the site offline or into maintenance mode, change all passwords, restore a clean backup, update everything and find how the attacker got in. If you are unsure, ask a professional.

Are free themes and plugins safe?

They can be safe if they come from the official directory or a trusted developer, are updated regularly and are still supported. Delete anything you do not use.

Want a second pair of eyes on your WordPress site?

Tell us about your site and what worries you. We will reply with honest advice on how to start.

Discuss your project

Want to automate work with AI?

Tell us where your team loses time and we will reply with honest advice on how to start.

Keep reading

Related articles