Context added on 8 October 2026: This article dates from March 2023. Guidance on databases, access protection and code was corrected on 8 October 2026. The named tools are examples from that context; changes must suit the actual installation and be tested.
WordPress is widely used, which also makes it an attractive target for automated attacks. Effective protection depends on regular updates, controlled access, dependable backups, secure configuration and monitoring. No individual plugin can replace this combination.
1. Update WordPress, themes and plugins
Always keep WordPress, your themes and plugins up to date. Updates often include security patches that fix known vulnerabilities. Make sure you have automatic updates enabled or perform manual updates regularly.
2. Use strong passwords and usernames
Choose strong passwords and unique usernames for your WordPress admin, FTP accounts, and databases. Avoid standard usernames like “admin” and create complex passwords with a combination of upper and lower case letters, numbers, and special characters.
3. Limit login attempts
Install a plugin that limits the number of failed login attempts to prevent brute force attacks. Plugins like “Limit Login Attempts” or “Login LockDown” are good options to protect your login page.
4. Use a firewall and security plugin
A web application firewall (WAF) helps keep malicious traffic away from your website and block known security threats. Additionally, you can install a security plugin like “Wordfence” or “iThemes Security” to provide your WordPress websites with additional protection.
5. Back up your database
A different table prefix does not prevent SQL injection. Secure database access, appropriate permissions and regular backups tested for restoration are essential.
6. Use HTTPS
Secure your website with a Secure Sockets Layer (SSL) certificate to encrypt traffic between your server and your website visitors. This protects sensitive data such as login details or payment information and increases visitor trust in your website.
7. Protect the wp-admin and wp-includes folder
Blanket IP restrictions on wp-admin and wp-includes can block necessary functions. Additional access protection must suit the installation and be tested. Consult the WordPress hardening documentation.
8. Disable file editing
By default, WordPress allows administrators to edit theme and plugin files directly from the dashboard. Disable this feature in the wp-config.php file by adding the following code:
define('DISALLOW_FILE_EDIT', true);
This disables the built-in file editor. It does not prevent every possible way of modifying files.
9. Hide your WordPress version
Removing a version hint does not replace security updates. If you want to remove the generator hint, use an update-safe approach such as a custom plugin. Do not edit a third-party theme’s files directly.
remove_action('wp_head', 'wp_generator');
10. Conduct regular security checks
Use tools like “WPScan” or “Sucuri SiteCheck” to regularly check your website for security holes and malware. This allows you to identify and eliminate potential weak points at an early stage.
Conclusion
WordPress security reduces the risk of data loss, downtime and misuse of website resources. By implementing the above security measures, you will ensure that your website is protected from most common cyber threats. Remember that no solution is 100% secure and it is important to always have a backup of your website available and regularly install the latest security updates.