DEV Community

Vulnerability Tools
Vulnerability Tools

Posted on

Security Tip: Hardening wp-admin Against Brute-Force Attacks

Your WordPress login page is one of the most attacked URLs on the internet. Bots hammer /wp-admin and /wp-login.php around the clock, trying common usernames and passwords until one works. If your login page is unprotected, it is only a matter of time before a brute-force attack succeeds — especially if your admin username is still "admin."

Here are five practical steps to lock it down today:

  1. Limit login attempts. Install a plugin or use your host's security feature to block an IP after a few failed tries. This alone stops most automated attacks.
  2. Enable two-factor authentication (2FA). Even if an attacker guesses your password, 2FA stops them at the door. Use an authenticator app rather than SMS.
  3. Rename or protect the login URL. Moving /wp-login.php to a custom path removes you from the mass-scanning radar, since bots target the default URLs.
  4. Whitelist IPs on the admin area. If only a few people manage the site, restrict /wp-admin to their IP addresses via server rules or a firewall.
  5. Keep everything updated. Brute-force attacks often succeed because the site runs outdated WordPress core or plugins with known vulnerabilities — and you can check for those in seconds with a free online scan at https://vulnerabilitytools.com/wordpress-vulnerability-scanner.

A hardened login page won't stop every threat, but it turns your site from an easy target into a hard one — and attackers move on to easier prey.

Top comments (0)