Journal · Security

How to harden your WordPress website against hackers

Plain-English steps to harden a WordPress website for UK small businesses: logins, updates, plugins, backups and settings that make it a harder target.

By Alleo Gordon, founder of WonderlandSites

A while ago I was tidying up my own website and noticed something small. WordPress was publishing a list of authors in the site’s sitemap, the file that tells search engines which pages exist. That list gave away the username used to log in. Nothing bad had happened. But it meant anyone trying to guess their way in already had half the answer.

I switched the author list off, and sent the author pages back to the home page. Two minutes’ work. That’s what “hardening” mostly is: lots of small, sensible changes that make your site a harder target.

Here’s how to harden a WordPress website, in plain English, for coaches, therapists, tutors and other small service businesses. Some of it you can do today. Some of it is a job for your host or whoever looks after your site.

First, a reality check

No website is unhackable. WordPress’s own security guidance says it plainly: security is about reducing risk, not removing it (WordPress: Hardening WordPress). Anyone who promises a site that can never be hacked is promising something they can’t deliver.

The good news: most attacks on small sites are automated. Bots try known weaknesses in old plugins, and they try guessing passwords. WordPress’s guide names these as the two most common kinds of attack. Close those doors and you’re out of reach of most of them.

1. Logins: the front door

  • Use long, unique passwords for every account, made by a password manager. WordPress’s guide warns against anything based on your name, business name or website, dictionary words, and short passwords.
  • Turn on two-step login (sometimes called two-factor), so a stolen password alone isn’t enough to get in.
  • Don’t use “admin” as a username. WordPress’s guide notes that easily guessed names like “admin” or “webmaster” are usually attacked first.
  • Give each person their own login, with only the access they need. Don’t share one admin login between you, a VA and a past helper.
  • Remove old users. Anyone who no longer works with you shouldn’t still have an account.
  • Check what your site gives away. As on my own site, author pages and sitemaps can reveal usernames. Whoever looks after your site can switch that off.

2. Updates: closing known holes

When a security problem is fixed in a new version of WordPress, a plugin or a theme, details of it usually become public. Older versions become easier targets. WordPress’s guide is clear: keep up to date, because older versions don’t get security fixes.

Update regularly, back up first, and check your key pages afterwards. My WordPress update schedule guide gives a simple routine.

3. Plugins and themes: fewer, trusted, current

Every plugin is extra code running on your site. A few habits:

  • Only install from trusted sources: the official WordPress.org directory or well-known companies. WordPress’s guide warns against “free” copies of paid plugins from elsewhere.
  • Delete what you don’t use. Switched-off plugins and spare themes can still be a way in. WordPress’s guide says to delete plugins you’re not using.
  • Be wary of plugins that let you run code from inside the dashboard. They’re powerful in the wrong hands.

4. Turn off the built-in file editor

By default, WordPress lets administrators edit theme and plugin code from inside the dashboard. WordPress’s guide notes this is often the first tool an attacker uses if they get in, and recommends switching it off with one line in a file called wp-config.php. If that sounds technical, it is. Ask your host or whoever looks after your site. It takes them a minute.

5. A firewall

A firewall filters out bad traffic before it reaches your site. WordPress’s guide describes three kinds: security plugins that work inside WordPress, firewalls on your web server, and outside services that sit between visitors and your site. Many hosts include some protection already, so ask yours what’s in place before adding more.

I’ll compare common security plugins in a separate guide, and the two best-known names head to head in Wordfence vs Sucuri.

6. The padlock: HTTPS everywhere

Your site should load with https and a padlock, so information sent through your forms and logins is encrypted on the way. WordPress’s guide recommends using HTTPS for your admin area at the very least. If your browser shows “Not secure”, get it sorted. Here’s how to set up an SSL certificate on WordPress.

7. Your hosting and your own computer

Hardening isn’t only about the website:

  • Choose a host that takes security seriously: up-to-date server software, reliable backups, and a straight answer about what they protect and what’s left to you. WordPress’s guide points out that hosts usually look after the server, but the software you install is your responsibility.
  • Use SFTP, not plain FTP, if you or anyone else moves files to your server, so passwords aren’t sent unencrypted.
  • Keep your own computer clean. WordPress’s guide notes that no amount of website security helps if there’s a keylogger on your laptop. Keep your computer and browser updated, and be careful with public Wi-Fi.

8. Backups: your safety net

Hardening lowers the risk. Backups are what you fall back on if something gets through anyway. Keep backups off the website, for long enough to go back a few weeks, because a hack can go unnoticed for days. My WordPress backup strategy guide explains how.

9. Watch for trouble

Two simple kinds of watching help you spot problems early:

  • Uptime monitoring, so you hear quickly if the site goes down: uptime monitoring explained.
  • Google Search Console, which can tell you if Google spots something wrong with your site. WordPress’s hacked-site guidance recommends registering your site with it.

A hardening checklist you can use today

You can do these yourself:

Ask your host or whoever looks after your site:

And if the worst happens, here’s what to do first if your WordPress site is hacked.

Security is one of the quiet things website care looks after every week, so it isn’t another job on your list.

Not sure how exposed your site is? Start with a free Website Check

Send me your link and I’ll look it over.

Your free Website Check I look over your website and tell you in plain words what’s working and what’s holding it back, with your top 3 fixes, most important first. It arrives within 24 to 48 hours, Monday to Friday. No jargon, nothing to sign, and nothing changed on your site. Get your free Website Check

Which box on the checklist could you tick today?


Frequently asked questions

What does it mean to harden a WordPress site? Hardening means making a series of small changes that make your site a harder target: stronger logins, regular updates, fewer plugins, safer settings and good backups. It reduces risk; it can’t remove it.

Do I need a security plugin? Not always. Many hosts already include protection such as a firewall and malware scanning. A security plugin can add more, but check what your host provides first so you don’t double up.

What’s the single most important hardening step? Strong, unique passwords with two-step login, alongside regular updates. Guessed passwords and out-of-date plugins are the two most common ways in, according to WordPress’s own security guidance.


About the author Alleo Gordon, founder of WonderlandSites. IT technician at a sixth form college in Bethnal Green for 3 years; looking after websites since 2018.

Whenever you’re ready, I’m here.

Tell me a little about where you are and where you’d like to be. I’ll reply personally.

Get in touch