WordPress powers 43% of all websites in the world. That makes it the favorite target of automated attackers. The good news is that most successful attacks take advantage of default settings that can be fixed in under an hour. Here are the 8 most important ones.
Important fact: 90% of compromised WordPress sites are due to outdated plugins or weak passwords, not vulnerabilities in the WordPress core. The configuration you are about to read mitigates exactly that.
Change the database table prefix
By default, WordPress uses the wp_ prefix for all its tables. Any automated SQL Injection attempt knows this and tests it directly. Changing this prefix during installation eliminates a trivial attack vector.
Delete the default "admin" user
The username "admin" is the first one brute-force attacks try. If you keep it, the attacker already has half the work done — they just need the password.
Use strong and unique passwords
A password like "company2026" can be cracked in seconds with dictionary attacks. WordPress generates secure passwords automatically — use them, or use a password manager.
Enable Two-Factor Authentication (2FA)
Even if someone gets your password, 2FA prevents access without the second factor (your phone). It is the highest-impact, lowest-effort measure on any WordPress.
Limit failed login attempts
By default, WordPress allows unlimited login attempts. A brute-force attack can test thousands of passwords per hour. Limiting attempts makes this unviable.
Keep WordPress, themes, and plugins updated
60% of known vulnerabilities in WordPress have a patch available — the problem is nobody installs it. Every pending update is a vulnerability with a public exploit.
Disable file editing from the dashboard
The WordPress file editor allows modifying PHP directly from the browser. If someone compromises an admin account, they can inject malicious code without touching the server.
define('DISALLOW_FILE_EDIT', true);
Configure external daily automatic backups
A backup is worthless if it is on the same server as the compromised website. Backups must be automatic, daily, and stored on an external service.
What if I already have the website published?
It's not too late. You can apply most of these changes on a live website without affecting its operation. The recommended order if you start from scratch:
- Update WordPress, plugins, and themes to their latest versions.
- Change passwords for all admin users.
- Enable 2FA for administrators.
- Install and configure Limit Login Attempts Reloaded.
- Add DISALLOW_FILE_EDIT to wp-config.php.
- Configure external automatic backups with UpdraftPlus.
- Verify your HTTP security headers.
- If you have doubts about existing vulnerabilities, hire an audit.
Want us to review your WordPress?
We audit your installation with WordPress-specific tools: WPScan, plugin analysis, exposed settings, and manual testing.
View web audit →