WordPress security: 10 things every site owner should do

Ten practical steps that stop most WordPress attacks, explained without jargon, plus what to do if something goes wrong anyway.

Illustration of a small glowing house encircled by a giant padlock shackle, with tiny figures with crowbars kept outside.
In this article
  1. How do you keep WordPress software safe?
  2. How do you secure WordPress logins and accounts?
  3. How do you protect the site from attacks?
  4. How do you prepare for something going wrong?
  5. The short version

In short

Most WordPress hacks exploit the basics: outdated plugins, weak passwords and too many administrators. Keep everything updated, use a password manager and two-factor login, give people only the access they need, install plugins from trusted sources, keep tested off-site backups, put a firewall in front of the site and write down what you will do if it is hacked.

Most hacked WordPress sites are not the victims of clever, targeted attacks. They are found by automated scripts that scan thousands of sites a minute for an old plugin, a guessable password or an open login page. If your site has none of those, the scripts move on.

The good news is that the fixes are mostly habits, not technology. Here are the ten things we would ask every business owner to check, grouped into four areas: the software, the logins, the site’s defences and your plan for a bad day.

How do you keep WordPress software safe?

1. Why are updates the most important security step?

Updates close holes that attackers already know about. Once a vulnerability in a popular plugin is made public, automated scanners start looking for sites that still run the old version. The official WordPress hardening guide puts keeping WordPress up to date at the top of its list for exactly this reason.

Updates cover three layers: WordPress core, your plugins and your theme. The server software (PHP, the database, the operating system) needs updating too, which is your host’s job on managed hosting.

Tip: Run updates on a staging copy first when you can. A tested update takes a few minutes longer and saves you from discovering a broken checkout on a Saturday morning.

2. How do you choose plugins you can trust?

Every plugin is code from someone else running on your server. Before installing one, check that it was updated recently, has a meaningful number of active installs, has a support forum where questions get answers, and does one job you actually need.

Watch out: “Nulled” (pirated) premium plugins and themes are a common source of malware. The money saved is rarely worth a backdoor in your site.

Delete plugins you have deactivated. Inactive code can still be exploited if the files are on the server.

How do you secure WordPress logins and accounts?

3. What makes a password strong enough?

Length and uniqueness matter far more than symbols. The current NIST guidance on passwords asks for long passwords, checks against lists of known breached passwords and, notably, no forced periodic changes or “must contain a symbol” rules. Those rules produce predictable passwords like “Summer2026!”.

In practice:

  • Use a password manager and let it generate every password.
  • Never reuse a password between your website, hosting account and email.
  • Do not use “admin” as a username.
  • Change passwords straight away if someone leaves or a breach is suspected.

4. Should you turn on two-factor authentication?

Yes, at least for every administrator and editor. Two-factor authentication (2FA) means a stolen password alone is not enough to log in. The OWASP guidance on multi-factor authentication ranks the options clearly: passkeys and hardware keys are strongest, authenticator apps come next, and codes by SMS are the weakest because phone numbers can be hijacked.

For most small teams an authenticator app is the sensible default. It costs nothing and takes a minute to set up per person.

5. Who should have administrator access?

As few people as possible. WordPress has built-in roles and capabilities for a reason: an Editor can manage all content, an Author can publish their own posts, and a Contributor can write but not publish. None of them can install plugins or change settings.

RoleTypical personCan install plugins?
AdministratorSite owner, developerYes
EditorMarketing managerNo
AuthorRegular blog writerNo
ContributorGuest writerNo
Shop manager (WooCommerce)Staff handling ordersNo

Review the user list twice a year. Remove former staff, old agencies and test accounts. Every unused admin login is a door nobody is watching.

6. How do you protect the login page?

The login page is the most attacked part of any WordPress site. WordPress’s own advice on brute force attacks recommends rate-limiting login attempts at the firewall or web server, using 2FA, and disabling XML-RPC if nothing on your site uses it.

Other sensible steps:

  • Limit failed login attempts and lock out repeat offenders.
  • Turn off the built-in file editor in the dashboard, so a stolen admin login cannot be used to edit code directly.
  • Keep an eye on login alerts for administrator accounts.

How do you protect the site from attacks?

7. What does a web application firewall do?

A web application firewall (WAF) inspects traffic before it reaches WordPress and blocks known attack patterns, bad bots and floods of login attempts. Running it at the network edge, through a service such as Cloudflare, means the junk never touches your server, so the site stays faster too.

A WAF does not replace updates. It buys time and filters noise, but an unpatched plugin is still a risk.

8. Is HTTPS still worth checking?

HTTPS is standard now and free certificates are easy to get, but it still needs attention. Check that every page loads over HTTPS, that the old http address redirects, and that the certificate renews automatically. The hardening guide specifically recommends an encrypted connection for the admin area, because that is where passwords travel.

How do you prepare for something going wrong?

9. How often should you back up, and where?

The WordPress backup documentation suggests weekly backups for small sites and daily for busy ones, with copies kept in more than one place. A backup must include both the files and the database, and at least one copy should live away from the server it protects.

A backup you have never restored is a hope, not a plan. Test a restore on a staging copy now and then. For reference, our own care plans range from weekly backups kept for 4 weeks to daily off-site backups kept for 90 days, depending on how often the site changes.

10. What should you monitor, and what is your plan if it goes wrong?

Monitoring tells you about a problem before your customers do. At a minimum, set up uptime checks, alerts for new administrator accounts and file changes, and make sure your site is verified in Google Search Console, which will warn you if Google flags it for malware.

Then write a one-page incident plan:

  1. Who do you call first (host, developer, care plan provider)?
  2. Where are the backups, and who can restore them?
  3. Who changes which passwords (WordPress, hosting, database, SFTP, email)?
  4. Who tells customers, and when, if personal data might be affected?

If you are on a care plan with us, a website rescue is included. Whoever you work with, agree this before you need it, not during an incident. You can see what is covered on our care plans page, or read more about WordPress maintenance.

The short version

  • Keep WordPress, plugins, themes and the server updated, ideally tested on staging first.
  • Use a password manager, unique long passwords and 2FA for everyone with editing rights.
  • Give each person the lowest role that lets them do their job, and remove old accounts.
  • Keep tested, off-site backups and put a firewall in front of the site.
  • Monitor for changes and write down your plan for a bad day before it happens.

Questions people ask

Is WordPress secure enough for a business website?

Yes, WordPress core is maintained by a large security team and patched quickly. Most problems come from outdated plugins and themes, weak passwords and neglected hosting rather than from WordPress itself. A site that is updated, backed up and monitored is a hard target.

Do I need a security plugin if I have a firewall?

Not always. A firewall at the network edge, such as Cloudflare, blocks a lot of bad traffic before it reaches the server, which is more efficient than filtering inside WordPress. A security plugin can still be useful for file change alerts and login rules, but stacking several security plugins usually causes more conflicts than protection.

How often should WordPress plugins be updated?

Security fixes should go on as soon as they are released, ideally within days. Routine updates can be grouped weekly or monthly, preferably tested on a staging copy first so a broken update never reaches the live site.

What should I do first if my WordPress site is hacked?

Stay calm and write down what you see and when. Then contact your host or developer, change every password (WordPress, hosting, database, SFTP) and take a snapshot before cleaning, so evidence is not lost. Restore from a clean backup only once you know how the attacker got in.

Tell us whatyou need built.

Send the brief, or call us. We will tell you honestly whether we are the right studio for it, and who to call if we are not.

Entity Media
Skopje
North Macedonia
Working hours
Mon-Fri, 09:00-17:00
Reply time
Within one working day
Care plans
Cancel with 30 days' notice
This site is registered on wpml.org as a development site. Switch to a production site key to remove this banner.