
WordPress powers more than 40% of all websites, according to figures from W3Techs. That also makes it the system attackers target most. It is almost always automated: scripts search day and night for websites with an outdated plugin, a weak password or an unprotected login page. So a small business website is just as much a target as a large online store.
The good news: a few fixed habits close most of the doors. In this article, you start with a ten-minute check in your own dashboard. After that, you read about the five measures that make the biggest difference, what we do on our own websites and what to do if things go wrong anyway.
First: how secure is your website right now? A 10-minute check
Log in to your WordPress dashboard and go through these points. If something doesn’t look right, you know straight away where to start.
- Dashboard > Updates. Are there updates waiting for WordPress, your theme or your plugins? Then you are falling behind.
- Plugins. Are any plugins set to ‘Inactive’? Delete them. Even a deactivated plugin can contain a vulnerability.
- Users. Filter by the Administrator role. Do you know everyone on the list? Is there still an account called
admin, or an account belonging to a former employee or your previous web developer? - Tools > Site Health. This is where WordPress checks your website itself. Pay particular attention to notices about the PHP version, HTTPS and automatic updates.
- Your backup. Do you know when the last backup was made, and where it is stored? If you can’t find that out within a minute, that is an answer in itself.
- Your usernames. Open
yourdomain.com/wp-json/wp/v2/usersin your browser. Can you see usernames there? Then anyone can see them, including someone who wants to try out passwords.
All in order? Great. Then read on for the measures that keep it that way.
1. Keep WordPress, themes and plugins up to date
Most hacked WordPress websites are not broken into through WordPress itself, but through a plugin or theme with a known vulnerability. As soon as a vulnerability like that becomes known, an update usually follows quickly. Websites that don’t install the update are then deliberately sought out.
What can you do?
- Turn on automatic updates. You can do this per plugin in the overview under Plugins, via ‘Enable auto-updates’.
- Delete plugins and themes you don’t use. The less software, the smaller the chance of a vulnerability.
- Choose plugins that are actively maintained. On wordpress.org you can see when a plugin was last updated.
- Before a major update, such as a new major version of WordPress or WooCommerce, make a backup first.
How we do it: on our own websites, all plugins are updated automatically, including plugins that are added later. We only get an email if an update fails. That way nothing gets left undone because someone forgot.
You will find more information in the official guide to updating WordPress.
2. Use strong passwords and two-factor authentication
In a brute-force attack, a script tries out thousands of combinations of usernames and passwords. With a short or reused password, it is only a matter of time. If your password has ever been leaked from another website, it happens even faster.
How to make your login stronger:
- Use a long, unique password for every account and store it in a password manager such as Bitwarden or 1Password.
- Don’t use the username
admin. - Don’t share login details. For a colleague or web developer, create a separate user with only the permissions they need.
- Delete accounts that are no longer used.
- Turn on two-factor authentication (2FA).
With two-factor authentication, a password on its own is not enough. After entering your password, you also have to enter a code, from an app or from your email. That makes a stolen password almost worthless. You can use the official Two Factor plugin or Wordfence Login Security for this.
How we do it: anyone who logs in to our own websites receives a 6-digit code by email after entering their password. Without that code you can’t get in, not even with the right password. On top of that, the login page doesn’t reveal whether a username exists: everyone sees the same message after a mistake. And the list of usernames from the check above is blocked on our sites.
You will find more guidelines in the WordPress documentation on secure passwords.
3. Set up a firewall and a malware scan
A firewall stops known attacks before they reach your website. A malware scan spots it if something has got in anyway. You can do this with a security plugin, but many good hosting providers already do it on the server itself.
So first ask your hosting provider what is already in place. If the server already runs a firewall and a malware scanner, you often don’t need a heavy security plugin. If not, Wordfence Security is a well-known choice, with a firewall, a malware scanner and extra login protection.
Please note:
- Don’t install several large security plugins at the same time. They get in each other’s way and slow your website down.
- Actually read the notifications. A scanner whose emails nobody opens protects no one.
- A security plugin is no substitute for updates and backups. It is an extra layer on top of that foundation.
4. Make backups you can actually restore
A backup is your insurance. After a hack, a failed update or a mistake, you use it to restore your website to how it was. But that only works if the backup is recent, complete and not stored in the same place as your website.
A good backup:
- is made automatically, at least daily if your website changes often, as with an online store;
- contains both the files and the database;
- is also stored outside your web server, for example in cloud storage;
- has several restore points, so you can go back to a moment before the problem;
- has been tested at least once: can you actually restore it?
UpdraftPlus is a widely used plugin for making backups, sending them to external storage and restoring them. Does your hosting provider make backups too? Then ask how often that happens, how long they are kept and whether you can restore them yourself. Don’t rely on them blindly.
5. Limit login attempts and use HTTPS
By default, WordPress allows unlimited login attempts. A plugin such as Limit Login Attempts Reloaded temporarily blocks an IP address after a number of failed attempts. That makes automated guessing a lot harder. It doesn’t help, though, if someone already has a valid password. So always combine it with two-factor authentication.
Always use an SSL certificate
With HTTPS, the connection between your visitor’s browser and your website is encrypted. Passwords, forms and payment details can’t be intercepted along the way. Without an SSL certificate, the browser shows ‘Not secure’, and that scares visitors off.
Most hosting providers supply a free certificate, often from Let’s Encrypt. After turning it on, check that your entire website loads via https://, including images and scripts, and that http:// automatically redirects to https://.
Has your website been hacked anyway? These are the first steps
Do you see strange pages, unknown administrators, redirects to other websites or a warning from Google? Then it is time to act. Do it in this order:
- Change all passwords. For WordPress, your hosting account, FTP or SFTP, the database and the email address linked to your administrator account.
- Remove anything you don’t recognise. Unknown administrators, plugins and files.
- Restore a clean backup from before the hack. If you don’t know exactly when it started, choose an older backup rather than one that is too recent.
- Update everything straight away. WordPress, themes and plugins. Otherwise the attacker will come back through the same vulnerability.
- Check Google Search Console under Security issues. If Google shows a warning for your website, request a review there once it has been cleaned up. You can read how to use Search Console in our article about Google Search Console.
- Inform your hosting provider. They can help investigate and can sometimes see where the attack came from.
Has customer or personal data fallen into the hands of others? Then you may need to report it to the Dutch Data Protection Authority (Autoriteit Persoonsgegevens). You have to do so within 72 hours.
Frequently asked questions about WordPress security
Is WordPress insecure?
No. WordPress itself is well maintained and security problems are fixed quickly. The risk lies mainly in outdated plugins, weak passwords and websites nobody looks after. With the measures in this article, you can secure a WordPress website properly.
Do I really need a security plugin?
That depends on your hosting. If the server already has a firewall and a malware scanner, a lightweight solution for login protection and 2FA is often enough. Without security on the server, a plugin such as Wordfence is a good addition.
How often should I make a backup?
At least as often as your website changes. For a website that rarely changes, weekly is often enough. An online store with daily orders needs a backup every day, or even more often.
Is this a one-off job?
No. New updates, vulnerabilities and attack techniques keep appearing. That is why security is not a job you do once, but ongoing maintenance. If you want to dig deeper into the technical side, read the official guide Hardening WordPress.
No time to keep up with this yourself?
Updates, backups, 2FA and reading security notifications: none of it is difficult, but it does have to be done, week after week. With WordPress website maintenance, we take care of it for you, so you don’t have to worry about the technical side. Curious about the cost? Read how much website maintenance costs and which plans are available.
Want a professional website that delivers results?
Tell us about your plans and receive free, no-obligation advice and a quote that fits.
Want to know more? Read all about website maintenance.
