How to Secure Your WordPress Website (10-Step Checklist)
Protect your WordPress site from hackers with this 10-step security checklist — covering passwords, plugins, backups, and firewalls.
WordPress Security Checklist
WordPress powers over 40% of the web, making it a prime target for hackers. Follow this checklist to secure your site.
1. Use a Strong Admin Password
- Minimum 16 characters
- Mix of uppercase, lowercase, numbers, and symbols
- Never use "admin" as your username
- Change the default admin username: Users → Add New → create new admin → delete old "admin" user
2. Keep WordPress, Themes, and Plugins Updated
- WordPress admin → Dashboard → Updates
- Update WordPress core, all themes, and all plugins
- Enable automatic updates: add to
wp-config.php:
define('WP_AUTO_UPDATE_CORE', true);
3. Install a Security Plugin
Wordfence Security (free):- Plugins → Add New → search "Wordfence"
- Install and activate
- Complete the setup wizard
- Enable the Firewall and Malware Scanner
4. Enable Two-Factor Authentication
- Install WP 2FA plugin
- Require 2FA for all administrator accounts
- Use Google Authenticator or Authy app
5. Limit Login Attempts
Wordfence includes this. Alternatively, install Limit Login Attempts Reloaded:
- Lock out after 5 failed attempts
- Lockout duration: 20 minutes
6. Change the WordPress Login URL
The default /wp-admin URL is targeted by bots. Install WPS Hide Login to change it to a custom URL (e.g., /my-secret-login).
7. Disable XML-RPC
XML-RPC is a common attack vector. Add to .htaccess:
<Files xmlrpc.php>
Order Deny,Allow
Deny from all
</Files>
8. Set Up Automatic Backups
Install UpdraftPlus:
- Plugins → Add New → search "UpdraftPlus"
- Install and activate
- Settings → UpdraftPlus Backups → Settings
- Schedule: Daily backups, keep 7 copies
- Remote storage: Google Drive or Dropbox (free)
9. Install an SSL Certificate
Ensure your site runs on HTTPS. See our [SSL installation guide](#).
10. Harden wp-config.php
Add these security keys to wp-config.php:
// Disable file editing from WordPress admin
define('DISALLOW_FILE_EDIT', true);
// Disable plugin/theme installation
define('DISALLOW_FILE_MODS', true);
// Force SSL for admin
define('FORCE_SSL_ADMIN', true);
After a Hack — Recovery Steps
If your site is already hacked:
- Take it offline immediately (rename
public_htmltopublic_html_hacked) - Run Wordfence malware scan
- Restore from a clean backup
- Change all passwords (WordPress, cPanel, FTP, database)
- Contact our support team for server-level malware scanning
Still need help?
Our Kenyan support team is on WhatsApp — real people, not bots. We respond in under 15 minutes.