Secure your WordPress site in five steps
To secure a WordPress site you need a handful of habits, applied every time. A security plugin cannot protect a site where a plugin with a published vulnerability has gone unpatched for months. Work through these in order.
- Patch everything: WordPress core, plugins, themes and the PHP version on your hosting.
- Delete what you do not use: Deactivated plugins still sit on the server and can still be exploited.
- Lock down logins: Unique passwords, two-factor authentication for every administrator, no account called "admin".
- Limit privileges: Keep administrators to the minimum. Content staff need the Editor or Author role.
- Keep off-site backups: Without one, an incident can turn into a total loss.
Where attackers get in
Attacks on WordPress are mostly automated. Bots scan millions of sites for a specific plugin version or try leaked passwords against the login page. That makes the common entry points predictable:
| Weak spot | How it is exploited | Fix |
|---|---|---|
| Plugin with a known vulnerability | Scanners look for vulnerable versions and exploit them automatically | Update promptly, replace abandoned plugins |
| Weak or reused password | Brute force and credential stuffing against wp-login.php | Password manager, 2FA, login rate limiting |
| Nulled themes and plugins | Pirated copies often ship with a backdoor | Install only from WordPress.org or the vendor |
| Loose file permissions | Malicious code can modify or add files | Folders 755, files 644, wp-config.php 640 or 600 |
| End-of-life PHP | The runtime no longer receives security fixes | Switch to a supported PHP version in your hosting panel |
Harden wp-config.php
A few core constants in wp-config.php switch off risky features without any plugin:
// Disable the theme and plugin file editor in the dashboard
define( 'DISALLOW_FILE_EDIT', true );
// Force HTTPS for logins and the admin area
define( 'FORCE_SSL_ADMIN', true );
// Never print errors to visitors
define( 'WP_DEBUG_DISPLAY', false );
DISALLOW_FILE_MODS set to true goes one step further and blocks plugin and theme installs and updates from the dashboard. That only makes sense when updates run through a deployment pipeline or WP-CLI. On ordinary shared hosting it also blocks your security updates.
Make sure the authentication keys and salts are set and unique. Regenerating them logs out every user, which is exactly what you want after a suspected breach:
wp config shuffle-salts
Accounts and authentication
- Two-factor authentication: The community plugin "Two Factor", or the 2FA features in Wordfence or Solid Security.
- Rate-limit logins: Through a security plugin or your host's web application firewall.
- Review XML-RPC: If no app or service needs xmlrpc.php, you can block it. Jetpack and some mobile apps do rely on it.
- Application passwords: Available since WordPress 5.6 for API access. Issue them deliberately and revoke unused ones in the user profile.
- Audit users: Remove former staff, agencies and test accounts.
wp user list --role=administratorlists every admin.
Hosting matters as much as WordPress
- A supported PHP version. WordPress 7 requires at least PHP 7.4; PHP 8.3 or newer is recommended.
- An SSL certificate that renews automatically, with HTTP redirected to HTTPS.
- SFTP or SSH instead of plain FTP.
- Separate accounts or containers when several sites share a server, so one compromised site cannot reach the others.
- A web application firewall, at the host, through a service such as Cloudflare, or as a plugin.
A monthly security routine
Security is not a one-time setup. For a small business site, 20 minutes a month covers the essentials:
- Install pending updates under Dashboard → Updates.
- Compare core and plugin files against official checksums:
wp core verify-checksumsandwp plugin verify-checksums --all. - Review users and roles.
- Confirm the latest backup is complete and can actually be opened.
- Read the security plugin's report instead of filing the email unread.
An activity log plugin such as WP Activity Log records who installed plugins, created users or changed settings. When something goes wrong, that record saves hours.
What a security plugin does and does not do
Wordfence, Solid Security and Sucuri Security bundle several protections: login rate limiting, two-factor authentication, file integrity scans, alerts for known vulnerabilities and, depending on the product, an application-level firewall. Pick one and configure it properly. No plugin can patch a vulnerable plugin you never update, and none of them stops an administrator whose password was stolen and who has no second factor. A firewall in front of the site, at your host or through Cloudflare, also filters attacks before they reach WordPress and takes load off the server.
Tools → Site Health in the WordPress dashboard flags outdated PHP, inactive plugins and missing HTTPS. It is a good first check before anything else.
Mistakes to avoid
- Postponing updates for months out of fear of breakage. Test major updates on a staging site instead.
- Running two or three security plugins at once. They conflict and slow the site down.
- Storing backups only on the same server. If the server fails or is encrypted by ransomware, the backup goes with it.
- Fixing only the visible symptom after an incident. The guide WordPress hacked covers a full cleanup.
How eCloud Systems can help
A site built with our WordPress package starts with current WordPress, a lean theme, SSL and a short list of maintained plugins. For an existing site, security reviews, hardening and ongoing maintenance are available on request for a monthly fee. Reach us through the contact form.
Frequently asked questions
Is WordPress insecure?
WordPress core is actively maintained and gets security fixes quickly. Most vulnerabilities come from outdated or poorly maintained plugins and themes, and from weak credentials.
Do I need a security plugin?
A plugin such as Wordfence or Solid Security helps with login protection, firewall rules and file scanning. It does not replace updates, strong passwords or backups.
How do I find known vulnerabilities in my plugins?
Databases such as WPScan, Patchstack and Wordfence Intelligence list known vulnerabilities by plugin and version. Many security plugins compare your installed versions against them automatically.