// WordPress guide

How WordPress sites get hacked, and how to stop it

Last updated

Nobody picked your site

Most WordPress hacks aren't personal. Bots scan the internet around the clock, looking for WordPress sites with a way in. They don't know or care what you sell. If a door is open, they walk through it.

WordPress isn't badly made. It runs a huge share of the web, so it's the most-scanned target there is. Every plugin, theme and login page is one more thing that needs looking after.

The six ways in

1. Out-of-date WordPress, plugins and themes. Updates often fix security holes. Once a fix is published, the hole is public too, and bots start testing for it within days. Sites with a backlog of updates are the easiest targets.

2. Old PHP on your hosting. WordPress runs on PHP, and PHP has its own updates that WordPress can't apply. In October 2026 a flaw affected every version of PHP. Versions that are past end of life don't get fixes at all. See our PHP 8.2 guide.

3. Weak, reused or default logins. An account called admin is the first username every bot tries. WordPress also gives usernames away through author pages. From there, bots try common passwords and passwords leaked from other sites. A file called xmlrpc.php, switched on by default, lets them try hundreds of passwords in one go.

4. Abandoned and pirated plugins. A plugin whose developer has moved on never gets fixed. A "free" copy of a paid plugin or theme often comes with a backdoor already built in.

5. Access nobody tidied up. Old agency logins, support accounts and temporary admin users are left active for years. On one brochure site we moved, we found four administrator accounts. One was a temporary login with no email address and full admin rights.

6. Accounts you don't control. If your developer holds your hosting or DNS in their own account, you can't see what's changed or lock anyone out. You can't even move without asking them.

What they do once they're in

  • Spam and borrowed rankings. Pages on your trusted domain get rewritten with casino, pharmacy or loan content and links to the attacker's sites. Your site's reputation with Google gets spent on theirs. This is often called parasite SEO.
  • Redirects. Visitors from Google get sent to scam sites, sometimes only on mobile, so you never see it yourself.
  • Card skimming. On WordPress shops, code on the checkout copies card details as customers type them. If you sell online, Shopify takes this off your hands.
  • Backdoors. Hidden files let them back in even after you change your passwords.
  • Sending spam. Your server gets used to send email, until your own emails start landing in spam.

The most profitable hacks are the quiet ones. A defaced homepage gets fixed in a day. A rewritten 2013 blog post can earn money for years. We found exactly that on a site we moved: casino spam that had been live for over four years, on a site with a paid care plan.

Warning signs

  • Google shows odd titles or descriptions for your pages when you search site:yourdomain.co.uk.
  • Search Console flags "Security issues" or "Manual actions", or shows you appearing for casino, pharmacy or loan searches.
  • Old posts have a recent "last modified" date that nobody can explain.
  • There are admin users nobody recognises.
  • Visitors mention being redirected, or your host warns about outgoing spam.

If you're staying on WordPress: the checklist

Close the door

  • Delete any account called admin. Create a new administrator, move the content over, then delete the old account.
  • Use long, unique passwords from a password manager, and two-factor login for every administrator.
  • Turn off xmlrpc.php unless something specific needs it.
  • Limit login attempts, and stop WordPress showing usernames on author pages.
  • Keep one administrator per real person. Remove agency, support and temporary accounts when the job's done.

Shrink the target

  • Delete plugins and themes you don't use.
  • Update on a schedule, with a backup taken first.
  • Keep PHP on a supported version.
  • Unpublish old posts and empty pages nobody needs.

Watch what's published, not just the code

  • Security scanners check files and scripts. They won't notice a post rewritten through a real login, so check the live pages too.
  • Get alerts when posts change, and glance at the modified dates now and then.
  • Check Search Console every month.
  • Keep analytics working, so a strange page getting traffic stands out.

Own your accounts

  • Your domain, DNS and hosting should be in your name, with your developer given access, not the other way round.

Rather not do this yourself? We'll keep your WordPress site updated and secure.

Or take the target away

Most small business sites don't change from one month to the next. They don't need a database, a login page or plugins, and those are the three things attackers go after. A plugin-free site has none of them: no logins to guess, no plugins to update, and no PHP to patch.

That's not right for everyone. If you've got several people publishing every week, WordPress earns its keep. Keep it, and run the checklist above.

Questions

I have a care plan. Am I covered?

Partly. Care plans usually cover updates, backups and malware scans. Scans look for malicious code. They won't flag spam written into a post through a real login. Ask your provider who checks the live pages and Search Console.

How do I know if my site's been hacked already?

Search site:yourdomain.co.uk on Google and look for anything you didn't write. Check Search Console for security issues, and check your user list for admins you don't recognise.

Is WordPress insecure?

Not on its own. The risk comes from what sits around it: plugins, logins, hosting, and whether anyone keeps on top of it.

Is a plugin-free site really unhackable?

Nothing is unhackable. But there's no login page, no database and no plugins, which is where almost all WordPress hacks start. The site's files live in a private repository with every change recorded.

Every job starts with a call

Your move.

Fifteen minutes on the phone. We’ll look at your site, tell you straight what we’d do, and you decide from there.

Rather ring? 01376 395118

Book your free call.

Fifteen minutes on the phone. We look at your site first, then tell you straight what we’d do. No pitch deck, no obligation.