Skip to content
All articles
July 11, 2026·4 min read

Brute-force attacks on /wp-login: how to limit attempts and hide your admin page

Seeing hundreds of failed logins in your logs? Here's how to actually stop the attack on /wp-login: limit attempts and hide the admin page.

You open your hosting security report in the morning and see something alarming: hundreds, sometimes thousands of failed login attempts on /wp-login.php, from IP addresses all over the world. It's natural to wonder whether your site is already compromised. The good news: in most cases you aren't being targeted personally — these are automated bots mechanically trying passwords against any WordPress site they can find.

The even better news is that you're not helpless. With a few simple measures you can turn an exposed login page into one that's nearly impossible to crack by brute force. Let's walk through, step by step, what you actually do — from limiting attempts to hiding the admin page entirely.

Why you get hundreds of attempts (and when it's genuinely dangerous)

A brute-force attack means a program automatically tries username and password combinations until it hits a valid one. WordPress is the most-used platform in the world, and /wp-login.php is the standard address — so bots know exactly where to knock. Nobody singled you out; they simply scan the internet.

The real danger appears in a few situations:

  • you have an account with a predictable name like "admin", "administrator" or your company name
  • you use a short password or one reused from another site
  • you have no mechanism to block IPs after too many failures

If any of those apply, the attack has real odds. If not, the logs are just annoying noise — but still worth cleaning up, because every attempt eats server resources and can slow your site down.

First layer: passwords and usernames bots can't guess

Before any plugin, fix the foundation. Most attacks succeed because of a weak password or an obvious username.

  • Delete or rename the "admin" account. Create a new administrator with a unique name, reassign your posts to it, then delete the old one.
  • Use a long, random password generated by a password manager. A multi-word passphrase is far harder to crack than a short password with symbols.
  • Don't expose your author name in URLs. WordPress sometimes reveals the user via /?author=1 — check and block that.

This foundation costs nothing and removes the largest share of the risk. Even if bots keep knocking, there's nothing left to guess.

Limit login attempts

The second layer stops the attack mechanism itself: the number of tries. The idea is simple — after a few consecutive failures from the same IP, you block access for a period.

On WordPress there are dedicated "limit login attempts" plugins that do exactly this: you set, say, a small number of allowed tries, then a lockout that grows on repeat offenses. A bot that has to wait after every few attempts becomes practically useless.

If you have server access, you can go further with Fail2ban, which reads your logs and blocks IPs at the firewall level — more efficient, because it stops the traffic before it reaches WordPress. Combined with a plugin, you also cover the case where the attacker keeps rotating IPs.

Hide or protect the admin page

If bots can't find the login page, they can't attack it. You have several options, from simple to solid:

  • Change the login URL. Plugins that rename /wp-login.php to an address only you know (for example /company-entry) instantly kill the wave of automated bots.
  • Protect /wp-admin with a second password at the server level (HTTP Basic Auth, via .htpasswd or your hosting panel). The attacker hits a wall before ever seeing the WordPress form.
  • Restrict access by IP if you always work from the same locations.

An honest caveat: hiding the address isn't absolute security — it's "security through obscurity." It hugely cuts automated noise, but it doesn't replace good passwords and attempt limiting. You use them together, as layers.

Add two-factor authentication and a firewall

Even if someone guesses the password, two-factor authentication (2FA) stops them: on top of the password, they need a code from your phone app. For an admin account, it's the best few-minute investment you'll make.

A web application firewall (WAF) — whether through a well-known security plugin or at the CDN level — filters bad traffic before it reaches your site. Many automatically block brute-force patterns, known bots and suspicious requests.

Together, these layers mean an attack that once filled your logs becomes, in practice, impossible: the address is hidden, abusive IPs are blocked, and even a correct password gets nowhere without the second step.

Too much hassle? We'll set it all up for you

Every measure above is real and you can do it yourself — but it takes time, attention and a little care not to lock yourself out. If you'd rather sleep easy without becoming a security admin, that's where MPO Web Studio comes in.

We work remotely, across the whole country, and set up a secure WordPress from scratch: a clean admin account, attempt limiting, hidden login, 2FA and a firewall — all tested, so you don't get locked out. We explain transparently what we did and why, with no jargon.

If you're staring at hundreds of attempts in your logs right now and want it to stop, send us a message on WhatsApp. We'll look at your situation together and tell you honestly what's worth doing.

Frequently asked questions

Do hundreds of attempts in my logs mean my site was hacked?+

Almost certainly not. Failed attempts mean exactly that — they failed. It's just a sign that automated bots are testing your login page, which happens to every WordPress site. It only becomes concerning if you see a successful login you don't recognize, or unexpected changes on the site.

Is it risky to change the /wp-login.php address? What if I lock myself out?+

The main risk is forgetting the new address. Save it in a password manager the moment you set it. Serious plugins let you recover it from the database or by disabling the plugin via FTP anyway, so you won't be permanently locked out.

Is a login-limiting plugin alone enough?+

It's a good start and stops most automated attacks, but don't rely on a single layer. The combination that actually works is: a strong password, a non-obvious username, attempt limiting and 2FA. Each covers a weakness in the others.

Does blocking attempts slow my site down for visitors?+

No. These measures only affect the login page and authentication attempts, not the public pages your customers see. If anything, stopping bots earlier frees up server resources, so your site can run even better.

Do I need a dedicated server, or does cheap hosting work?+

Most measures — a limiting plugin, hidden login, 2FA, good passwords — work on any WordPress hosting, including cheap plans. Fail2ban and firewall-level blocks need more advanced server access, but they aren't required to be well protected.

Free guide

7 mistakes that drive clients away from your website

Leave your email and get the guide right here, instantly. No spam.

By submitting, you agree to the Privacy Policy.
Free · no obligation

Want to see what your business's website could look like?

Message us on WhatsApp and we'll prepare a FREE demo website with your business name. See it first — decide after.

Request a free demo websiteWe reply on WhatsApp within minutes