WordPress security: It’s not about “strong passwords” anymore
Most WordPress security advice is dangerously outdated. “Keep themes updated” and “use strong passwords” are the bare minimum, not a strategy. In 2025, security is about reducing your attack surface and assuming breach intent.
As a developer who has cleaned up hundreds of infected sites, I can tell you: hackers don’t care about your password. They care about your unpatched plugins and open XML-RPC ports.
The real threats (that plugins won’t fix)
Security is built through hardening and server-level measures, not by installing plugins. The real threats are structural:
- Supply Chain Attacks: A perfectly secure site can be compromised if a trusted plugin author sells their plugin to a shady ad-tech company.
- Abandoned Code: That “harmless” slider plugin you haven’t updated in 3 years? It’s a backdoor waiting to happen.
- Enumeration: Bots constantly scan
/wp-json/wp/v2/usersto find admin usernames. If you haven’t blocked this, you’re leaking data.
3 steps to “harden” your site (beyond updates)
1. Disable XML-RPC
This ancient protocol is the #1 vector for brute-force attacks. If you aren’t using the mobile app or Jetpack, kill it.
// In your functions.php or site-specific plugin
add_filter('xmlrpc_enabled', '__return_false');
2. Hide your login url? (Controversial)
Security through obscurity isn’t security, but moving wp-login.php to /my-secure-login does stop 99% of dumb bots from wasting your server resources. It’s noise reduction, not a vault door.
3. Strict file permissions
Your wp-config.php should be 400 or 440. Your uploads folder should prevent PHP execution. If an attacker manages to upload a shell script, making sure they can’t run it is your last line of defense.
The cost of neglect
I recently audited a site that ignored updates for 8 months. The result? A SEO spam injection that redirected 50,000 visitors to a gambling site. The cleanup cost $2,000. The reputation damage? Priceless.
The Bottom Line: Security isn’t a plugin you install. It’s a process of regular audits, minimizing dependencies, and keeping your house clean.


