
WordPress powers a large share of the web, which makes it a popular target for automated attacks. The good news is that most successful attacks exploit basic weaknesses that are easy to prevent. Use this checklist as a starting point.
Keep everything updated
Outdated WordPress core, themes and plugins are the most common cause of hacked sites. Apply security updates promptly, and test major updates on a staging copy first.
Remove what you do not use
Every inactive plugin or theme is extra code that can contain vulnerabilities. Delete what you do not need and install software only from trusted sources.
Strong logins
- Use long, unique passwords stored in a password manager.
- Enable two-factor authentication for all administrators.
- Do not use the username admin.
- Limit login attempts or use a firewall that blocks brute-force attacks.
Least privilege
Give users only the role they need. Most authors do not need administrator access. Review user accounts regularly and remove former team members.
Harden the configuration
You can disable the built-in file editor in the dashboard by adding this line to wp-config.php:
define( 'DISALLOW_FILE_EDIT', true );
Also use secure file permissions, current PHP versions and HTTPS everywhere.
Backups and monitoring
Keep automatic offsite backups and test that you can restore them. Add uptime monitoring and security scanning so that problems are noticed quickly.
Use a web application firewall
A firewall, either at the host, a CDN or a plugin, filters malicious requests before they reach WordPress.
Where to start
Interactive checklist: tick off what you have done
- WordPress core, themes and plugins updated
- Unused plugins and themes deleted
- Two-factor authentication on all admins
- File editor disabled in wp-config.php
- Offsite backups and monitoring active
If you only have ten minutes, do three things: update everything, turn on two-factor authentication and check that your backups really work. We offer security reviews and maintenance plans if you would like expert help.