Skip to main content
Harrison Mann
HomeAboutServicesWorkPricingLearnToolsGet in touch
Home / Learn / Security
Security

13 steps to a secure WordPress website

WordPress powers a huge share of the web, which makes it a target. These practical steps keep your site, and your customers, safe.

8 min read·28 Apr 2026
By Richard Barker Digital Marketing Consultant 20+ years digital marketing experience Last updated: 28 Apr 2026
Security
13 Steps to a Secure WordPress Site

Key takeaways

  • Over 90% of hacked WordPress sites are compromised through outdated plugins or weak passwords, not sophisticated attacks.
  • Keeping WordPress core, plugins and themes updated is the single most effective security measure.
  • A security plugin, strong unique passwords and limited login attempts cover the vast majority of threats.
  • A care plan that handles updates and monitoring is the lowest-friction way to stay secure without thinking about it.

WordPress powers around 43% of the web, which makes it the single biggest target for automated attacks. The good news: the overwhelming majority of hacked WordPress sites are compromised through a handful of avoidable weaknesses. Work through these steps and you close the doors that attackers actually use. This is the practical, plain-English checklist I apply to every site I look after.

Why this matters

A hacked site can be taken offline, defaced, used to send spam, or have customer data stolen, and Google will flag it with a "this site may be hacked" warning that destroys your traffic and trust overnight. Prevention costs a fraction of recovery.

Step 1: Keep everything updated

Outdated plugins, themes and WordPress core are the number one cause of hacked sites. Updates routinely patch known security holes, and the moment a vulnerability is public, bots start scanning for sites that have not patched it.

  • Update WordPress core, plugins and themes promptly, ideally weekly.
  • Test updates on a staging copy first if your site is business-critical.
  • Remove any plugin or theme you are not using, deactivated is not enough, delete it.
  • Only install plugins from reputable sources with recent updates and good reviews.

Step 2: Use strong logins and limit attempts

Brute-force attacks, bots guessing username and password combinations, are relentless and automated. Make them pointless.

  • Never use "admin" as a username, create a unique admin name.
  • Use long, unique passwords (a password manager makes this painless).
  • Enable two-factor authentication (2FA) on all admin accounts.
  • Limit login attempts so bots get locked out after a few tries.
  • Consider changing the default /wp-admin login URL to reduce automated attacks.

Step 3: Install a security plugin

A reputable security plugin adds a firewall, malware scanning and login protection in one place. The well-regarded options include Wordfence, Sucuri and iThemes Security. Configure the firewall, enable scanning, and set up alerts so you hear about problems early.

Step 4: Back up properly (and test it)

Backups are your safety net. If the worst happens, a recent, working backup turns a catastrophe into an inconvenience. The key word is working, an untested backup is just a hope.

  • Automate daily backups (more often for busy ecommerce sites).
  • Store backups off-site, not just on the same server as your site.
  • Keep several restore points, not just the latest.
  • Actually test a restore periodically, so you know it works before you need it.
The backup that was not

I have lost count of the sites whose "backups" turned out to be empty, broken or stored on the same server that got compromised. Test yours. A care plan does this for you and verifies every backup.

Step 5: Lock down the foundations

  • Force HTTPS with a valid SSL certificate across the whole site.
  • Use the correct file and folder permissions (typically 644 for files, 755 for folders).
  • Disable file editing from the WordPress dashboard.
  • Change the default "wp_" database table prefix on new installs.
  • Keep your PHP version current, old PHP is both slow and insecure.
  • Choose quality hosting, cheap shared hosting is a common weak point.

Step 6: Manage users and permissions

Every account is a potential way in. Give people the lowest level of access they need to do their job, an editor does not need administrator rights, and remove accounts the moment someone no longer needs them.

Step 7: Monitor, and have a recovery plan

Security is not a one-off task, it is ongoing. Set up uptime and malware monitoring so you know immediately if something changes, and know in advance how you would recover: who to call, where the backups are, and how to take the site into maintenance mode while you fix it.

What should you do if your WordPress site has been hacked?

Take the site offline immediately if possible, restore from your most recent clean backup, change every password (WordPress, hosting, database, email), scan for remaining malware with a security plugin, and notify your host.

  • Do not panic, and do not just delete things blindly.
  • Take the site into maintenance mode to protect visitors.
  • Restore from a known-clean backup if you have one.
  • Scan and clean with a security plugin, or get professional help, to remove the infection.
  • Find and patch the entry point (usually an outdated plugin) so it does not recur.
  • Change all passwords and re-secure every account.
  • Request a review in Google Search Console once clean to clear any warning.
If your site is already compromised

Act quickly: take the site into maintenance mode, restore from a clean backup if you have one, scan and clean with a security tool, then find and patch the entry point so it cannot recur. Serious infections are often worth handing to a professional to ensure the site is fully clean.

How do WordPress sites actually get hacked?

The overwhelming majority of hacks exploit known vulnerabilities in outdated plugins, themes or WordPress core " not targeted attacks on individual sites. Automated bots scan millions of sites for these vulnerabilities continuously.

Understanding the common attack routes makes the whole checklist make sense. Almost every compromise comes through one of these doors, and every step in this guide closes one.

Attack routeHow it worksWhat stops it
Outdated plugins/themesBots scan for known, unpatched vulnerabilitiesPrompt updates
Brute-force loginBots guess username/password combinationsStrong passwords, 2FA, login limits
Weak hostingShared servers let one hacked site infect othersQuality, isolated hosting
Malicious pluginsDodgy or nulled plugins carry hidden codeOnly reputable sources
Outdated PHPOld server software has known holesKeep PHP current

Which WordPress security tools are worth using?

Wordfence and Solid Security (iThemes Security) are the most widely recommended security plugins. Cloudflare's free plan adds a useful firewall and DDoS protection at the DNS level. Use at least one.

You do not need a dozen tools, you need the right few, configured properly.

  • A security plugin (Wordfence, Sucuri or iThemes Security) for firewall, scanning and login protection.
  • A reputable backup solution (UpdraftPlus, BlogVault) sending copies off-site.
  • Two-factor authentication on every admin account.
  • Uptime and malware monitoring so you hear about issues immediately.
  • An SSL certificate (free via Let's Encrypt) forcing HTTPS everywhere.
Nulled plugins are never worth it

Free "premium" (nulled) plugins and themes from unofficial sites are one of the most common ways malware gets in. The licence fee you save is nothing next to the cost of a compromised site.

What should your monthly WordPress security routine include?

Each month: confirm all plugins, themes and WordPress core are updated, check backup logs to confirm backups are running, review security plugin logs for anything unusual, and confirm your SSL certificate is valid.

Security is a habit, not a one-off. A short monthly routine keeps you safe with minimal effort.

  • Apply all pending core, plugin and theme updates (after a backup).
  • Confirm your latest backup ran and is stored off-site.
  • Run a malware scan and review any security alerts.
  • Check user accounts and remove any no longer needed.
  • Glance at uptime and performance for anything unusual.

Building this into a recurring monthly reminder is the simplest way to stay on top of it. The routine matters more than the tools, a little regular attention prevents almost every serious problem.

Frequently asked questions

Do I really need a security plugin if my site is small?

Yes. Attacks are automated and indiscriminate, bots do not care how small you are. A small business site is just as likely to be probed as a big one, and often less well protected.

How often do WordPress sites actually get hacked?

Constantly, at the attempt level, every WordPress site is probed daily. The ones that get compromised are almost always the ones running outdated software or weak logins. Keep those tight and you avoid the vast majority of incidents.

Can a care plan handle all of this for me?

Yes. A managed maintenance plan typically covers updates, backups, monitoring, hardening and recovery, which is why many businesses choose to have security handled in the background rather than manage it themselves.

43%
of the web runs WordPress, the biggest attack target
#1
cause of hacks: outdated plugins and themes
Daily
automated attacks every site faces
From £85
per month for a managed care plan that handles it all
Want your WordPress site kept secure for you?

My care plans handle updates, backups, security monitoring and recovery automatically, so your site stays safe while you run your business.

See care plans

Keep reading

Richard Barker
Written by Richard Barker
Digital Marketing Consultant

Richard Barker has 20+ years of digital marketing experience. By day he leads digital marketing for a major UK IT solutions and services provider, a £2 billion IT solutions provider, building campaigns and websites for UK and international markets. Through Harrison Mann he applies that same strategic rigour to small and growing businesses.

Let's talk about your project.

Tell me what you need and I will come back with honest, practical advice. No pressure, no sales script.

Richard Barker
Richard BarkerDigital Marketing Consultant. Usually a same-day reply. No sales script.