Keeping a WordPress site safe isn’t a single task but a collection of habits you repeat regularly. By following the checklist below you’ll address the most common attack vectors and raise the bar for anyone trying to compromise your site.
How does WordPress security work?
WordPress runs on PHP and MySQL, and every request passes through the web server, the application core, plugins, themes, and finally the database. Each layer can be a point of entry if it is not properly configured. Good security means hardening every layer: user authentication, code updates, file permissions, server settings, and monitoring. By reducing the attack surface and adding detection, you make successful exploitation far less likely.
What are the key account and login habits?
- Use strong, unique passwords - long (12 characters or more), never reused, and generated and stored by a password manager.
- Enable two-factor authentication for all accounts that can edit the site. Follow the steps in the Two-factor authentication guide.
- Replace the default "admin" username - WordPress can't rename usernames, so create a new administrator, then delete the original and give its content to the new account.
- Remove unused accounts - go to Users → All Users and delete any account you no longer need.
- Limit login attempts - WordPress allows unlimited attempts by default, so use a security plugin, your host's tools or a server rule to lock out an address after a few failed tries.
How should I handle updates?
- Core - enable automatic background updates for minor releases and check the dashboard weekly for major releases.
- Plugins - keep every active plugin up to date; delete any plugin that is inactive for more than a month.
- Themes - update the active theme; keep only the active theme and a default theme (e.g., Twenty-Twenty-Three) on the server.
- PHP - ensure the server runs a PHP version that still receives security fixes (php.net lists which versions are supported). Older versions get no patches at all.
What file-system and server settings protect my site?
The details for each setting are in the full WordPress security checklist.
- File permissions - set files to
644and directories to755. Use a command such asfind /path/to/wp -type f -exec chmod 644 {} \;andfind /path/to/wp -type d -exec chmod 755 {} \;. - Secure wp-config.php - move it one level above the web root if possible, and define the authentication salts in
wp-config.phpusing the WordPress secret-key service. - Disable file editing - add
define('DISALLOW_FILE_EDIT', true);towp-config.phpto stop code changes from the dashboard. - Block PHP in uploads - on Apache, create a
.htaccessfile inwp-content/uploadswith a<FilesMatch "\.php$">block containingRequire all denied; on Nginx, add a location rule that denies.phpunder uploads. Uploaded scripts then can't run.
How can I add protection layers?
- Web application firewall (WAF) - enable a firewall that filters malicious HTTP requests before they reach WordPress.
- Malware scanner - schedule a scanner that checks core files, plugins, and themes for known signatures.
- Integrity monitoring - store a hash of each core file and compare it after each update; alert if any file changes unexpectedly.
- Security alerts - WordPress itself doesn't alert you about failed logins or file changes, so use a security plugin or your host's monitoring, and make sure the alerts go to an inbox someone reads.
What backup and recovery steps are reliable?
- Automate backups - set up a scheduled job that creates a full database and file backup daily. Follow the detailed steps in the backups guide.
- Store off-site - copy each backup to a remote location (cloud storage or another server) using SFTP or an API.
- Test restores - once a month, restore a backup to a staging environment and verify that the site works.
What common mistakes should I avoid?
- Relying on one security plugin - a single plugin cannot protect every layer; combine server hardening, WAF, and good practices.
- Leaving default usernames and passwords - attackers scan for "admin" and common passwords.
- Skipping updates for inactive plugins - even unused plugins can be exploited if they remain on the server.
- Storing backups on the same server - a compromised server can delete or corrupt local backups.
- Disabling all logs - without logs you lose visibility into brute-force attempts and file changes.
What are the limitations of these measures?
- A firewall or scanner can reduce but not eliminate zero-day exploits; you still need to apply updates quickly.
- Integrity monitoring only alerts you after a change; it does not prevent the change.
- Two-factor authentication protects login, but if an attacker gains a valid session cookie through another vulnerability, it won’t stop them.
- Permissions and server rules protect against many attacks but cannot stop a compromised admin account from uploading malicious code.
How Silent Threads helps
A security plugin can handle most of the "Protection" and "Ongoing" sections automatically. Silent Threads covers scanning, the firewall, integrity monitoring, login protection, and alerts from one dashboard.
The short version
- Use strong passwords and enable two-factor authentication for all admin users.
- Keep WordPress core, plugins, themes, and PHP up to date.
- Apply strict file permissions, protect
wp-config.php, and block PHP execution in uploads. - Activate a web application firewall, run regular malware scans, and monitor file integrity.
- Automate off-site backups and test a restore every month.
- Review logs regularly and stay aware of vulnerability news.




