Securing a WordPress website isn’t about installing one plugin and calling it done. It requires a balanced setup that protects against threats without affecting performance, SEO, or user experience.
This checklist is designed for real-world client projects — practical, effective, and safe for production websites.
1. Firewall & Core Protection
- Install and configure Wordfence
- Enable Extended Protection (Firewall)
- Keep Wordfence auto-updated
- Enable Live Traffic monitoring
2. Rate Limiting (Anti-Bot Control)
- Anyone → 240/min → Throttle
- Crawlers → 60/min → Throttle
- Crawlers 404 → 30/min → Block
- Humans → 60/min → Throttle
- Humans 404 → 20/min → Block
- Block duration → 30 minutes
- Allow verified Google crawlers
3. Login Security (Critical)
- Enable 2FA for admin users
- Limit login attempts (5 retries)
- Lockout duration → 30 minutes
- Disable username enumeration
- Enforce strong passwords
4. Spam Protection
- Enable reCAPTCHA v3 (login & forms)
- Use Akismet or Antispam Bee
- Manually approve first-time comments
- Disable comments if not required
5. Disable Weak Entry Points
- Disable XML-RPC
- Restrict
/wp-adminaccess (optional IP restriction) - Avoid exposing admin usernames
6. Plugins & Themes (High Risk Area)
- Delete unused plugins and themes
- Never use nulled or cracked plugins
- Keep all plugins and themes updated
- Use trusted developers only
7. Malware Prevention
- Change all passwords (WP, hosting, FTP, database)
- Reinstall core, plugins, and themes from clean sources
- Run regular malware scans using Wordfence
- Check
/uploads/for suspicious.phpfiles
8. Hosting & Server Security
- Use Cloudflare (CDN + WAF)
- Enable HTTPS (SSL)
- Use the latest stable PHP version
9. File & Access Hardening
Disable file editing in WordPress:
define('DISALLOW_FILE_EDIT', true);- Set correct permissions:
- Folders → 755
- Files → 644
10. SEO Spam & Hidden Malware Check
- Check for hidden links or injected content
- Look for Japanese/Chinese spam pages
- Monitor indexed pages in Google Search Console
11. User Management
- Remove unused users
- Limit admin access
- Use Editor role where possible
12. Allow Good Bots (SEO & AI Safe)
- Do not block:
- Googlebot
- Bingbot
- AI crawlers (ChatGPT, Gemini, etc.)
- Keep
robots.txtclean - Avoid aggressive country blocking
13. Monitoring & Maintenance
- Run weekly malware scans
- Review Wordfence logs
- Maintain daily backups
Final Outcome
This setup provides a balanced and production-ready security layer:
- Prevents brute-force attacks
- Reduces spam and bot traffic
- Protects against malware
- Maintains SEO performance
- Ensures smooth experience for users and admins
Important Note
If malware keeps coming back, it is not a settings issue. The root cause is usually:
- Compromised credentials
- Hidden backdoor files
In such cases, a full cleanup and security audit is required.