Key takeaways
- Security is layered: updates, strong authentication, a firewall, hardening, backups and monitoring together.
- Most WordPress compromises exploit known vulnerabilities in outdated plugins and themes — keep everything updated, ideally automatically.
- Every admin account should use a unique strong password and two-factor authentication.
- A backup you have never restored is a hope, not a plan. Test restores.
WordPress powers a large share of the web, which makes it an attractive target for automated attacks. The good news: you do not need to be a security engineer to protect a WordPress site. You need a consistent, layered routine. This checklist reflects how we secure the publications and client sites in our care.
1. Updates: close the doors attackers know about
- Enable automatic updates for WordPress core (minor and major), plugins, themes and translations. WordPress has supported per-plugin and per-theme auto-update toggles since version 5.5.
- Remove plugins and themes you do not use — even deactivated code can be exploited if it is reachable.
- Replace abandoned plugins (no updates for a long time, unresolved security reports) with maintained alternatives.
- Run a supported PHP version; old PHP versions no longer receive security fixes.
- Test major updates on a staging copy for complex sites, especially WooCommerce stores.
2. Accounts and authentication
- Unique, long passwords for every user, managed with a password manager.
- Two-factor authentication (2FA) for all administrators and editors — Wordfence and other security plugins provide this.
- Least privilege: give writers the Author or Contributor role, not Administrator.
- No shared accounts; remove users who have left the team.
- Limit login attempts and consider CAPTCHA on login, registration and checkout forms.
- Do not use “admin” as a username and avoid exposing usernames through author archives or the REST API.
3. Firewall and malware scanning
A web application firewall (WAF) blocks malicious requests before they reach vulnerable code. Options include an endpoint firewall inside WordPress (for example Wordfence) and cloud firewalls at the DNS/CDN level. Configure:
- Extended protection mode for the endpoint firewall (it loads before WordPress).
- Regular malware and file-integrity scans comparing core, theme and plugin files with official versions.
- Email alerts for critical findings and administrator logins.
- Rate limiting for crawlers and aggressive bots.
4. Hardening WordPress
| Measure | Why | How |
|---|---|---|
| Disable the file editor | Stops attackers with admin access from editing PHP in the dashboard | define('DISALLOW_FILE_EDIT', true); in wp-config.php |
| Disable XML-RPC if unused | Removes a common brute-force and amplification vector | Security plugin setting or a filter |
| Change the database prefix | Defeats some automated SQL injection scripts that assume wp_ | Tools such as Brozzme DB Prefix (back up first) |
| Hide or change the login URL | Reduces noise from automated login attacks | WP Hide & Security Enhancer or similar |
| Correct file permissions | Prevents unauthorised writes | Typically 755 for folders, 644 for files, stricter for wp-config.php |
| Security headers | Mitigate clickjacking, MIME sniffing and data leakage | X-Content-Type-Options, X-Frame-Options, Referrer-Policy, Content-Security-Policy |
| HTTPS everywhere | Protects logins and customer data in transit | TLS certificate plus redirects and HSTS |
Hiding paths and changing prefixes reduce automated noise, but they do not fix vulnerabilities. Treat them as extra layers on top of updates, strong authentication and a firewall.
5. Backups: your ultimate safety net
- Daily automated backups of files and database (more often for busy shops).
- Stored off-site, separate from your hosting account, ideally following the 3-2-1 rule: three copies, two media types, one off-site.
- Retention of at least 30 days so you can restore to a clean point before an undetected infection.
- A documented, tested restore procedure.
6. Monitoring and logging
- Uptime monitoring with alerts by email or messaging app.
- Activity logs showing logins, role changes, plugin installs and content edits.
- Search Console security issue notifications.
- Regular review of administrator accounts and scheduled tasks.
7. WooCommerce-specific measures
- Never store card data on your server; use a PCI-compliant payment gateway with hosted fields or redirects.
- Protect checkout from card-testing attacks with rate limiting and CAPTCHA.
- Restrict access to order and customer data with appropriate roles.
- Keep WooCommerce and payment extensions updated promptly — they handle sensitive data.
8. Privacy and compliance
Security and privacy go together. Use a consent tool (such as CookieYes) to manage cookies, publish an accurate privacy policy, collect only necessary data in forms and delete data you no longer need. Under laws such as the GDPR and Malaysia’s amended PDPA, certain personal data breaches must be reported, so know who is responsible for that decision.
9. Incident response plan
- Contain: put the site in maintenance mode, change all passwords and keys, revoke sessions.
- Assess: scan files and database, review logs to find the entry point.
- Clean or restore: restore a clean backup or remove malicious code; update everything.
- Close the hole: fix the vulnerability that allowed the attack.
- Recover: request a review in Search Console if the site was flagged; inform affected users if personal data was involved.
- Learn: document what happened and improve your routine.
Monthly security routine
- Check that automatic updates ran and nothing failed.
- Review firewall and scan reports.
- Remove unused plugins, themes and users.
- Test a backup restore on staging (quarterly at minimum).
- Review uptime and performance (see our Core Web Vitals playbook).
Conclusion
WordPress security is mostly about discipline: update, authenticate strongly, filter traffic, harden sensibly, back up and watch. If you would rather have a team handle it, our Website Management & Maintenance Plan covers every item in this checklist with 24/7 monitoring.