In this article8 sections
Out of the box, WordPress lets anyone try a password as many times as they like. A person gets one guess per try, but a bot can make thousands. Limiting login attempts closes that gap: after a few failures, the visitor is blocked for a while.
Why a login limit matters
Without a limit, a bot can keep guessing indefinitely, and each attempt uses server resources. A limit does two things:
- It makes password guessing too slow to be worth it.
- It reduces load on your server during an attack.
It is one of the cheapest defences against brute force attacks.

Settings that work for most sites
You will usually see these options in a login limit tool:
- Allowed retries: 3 to 5 failed attempts. Fewer than 3 will lock out real users who mistype passwords.
- Lockout duration: 15 to 30 minutes for the first lockout.
- Retry window: the time period in which failures are counted, for example, 12 to 24 hours.
- Long lockouts: after several lockouts from the same IP, extend the block to many hours or a day.
- Notifications: send an email to the site owner after repeated lockouts so you know when an attack is happening.
Choose stricter rules for sites with only a few users, and slightly looser ones for membership sites where many people log in, because the chance of a genuine mistake is higher.
How to set it up
You have a few choices.
Option 1: A security plugin. Many security plugins include login limits, so check whether you already have one before adding another.
Option 2: The Pro version of Admin Login URL Change. The Admin Login URL Change plugin offers a Login Limit feature in its Pro version, alongside Login Alerts, an IP Blocker, Country Block, Temp Login, and 2FA. The free version handles the custom login URL, which you can read about in how to change the WordPress login URL.
Option 3: Server-level tools. If you manage your own server, tools such as Fail2ban can block IPs that repeatedly fail logins before WordPress even loads. This is the strongest approach but needs server access.
Watch out for these problems
- Shared IP addresses. Offices, schools, and mobile networks put many people behind one IP. A strict limit may lock out a whole group. Raise the retry limit a little if this applies to you.
- Proxy and CDN setups. If your site is behind Cloudflare or another proxy, make sure your tool reads the visitor’s real IP, not the proxy’s. Otherwise, it may block the proxy and lock everyone out.
- Locking yourself out. Keep a way back in. Know how to disable the plugin through FTP or your hosting file manager by renaming its folder
wp-content/plugins/. - Duplicate tools. Running two login limiters can cause strange lockouts. Use one.
Combine it with other measures
A login limit works best alongside:
- Strong passwords stored in a password manager
- A custom login URL
- Two-factor authentication
- Country or IP blocking for the login page
How to test your login limit
- Open a private browser window.
- Enter a wrong password the allowed number of times.
- Confirm you see a lockout message.
- Wait for the lockout to end, or clear it from the plugin settings, then log in normally.
Test from a second device or network if you can, so you do not lock your own main IP.
Frequently asked questions
How many failed login attempts should I allow?
Three to five is a good starting point. Fewer than three tends to lock out real users who mistype a password.
Can a login limit lock out real users?
Yes, especially when many people share one IP address. Choose a sensible limit and know how to clear a lockout or disable the plugin.
Does WordPress limit login attempts by default?
No. WordPress core does not limit failed attempts, so you need a plugin, a server tool, or a firewall.
Summary
Limiting login attempts is a quick win. Set 3 to 5 retries, a 15 to 30 minute lockout, turn on email alerts, and make sure your tool sees real visitor IPs. Then add the other layers in our WordPress security checklist.
Disclosure: I develop the Admin Login URL Change plugin mentioned in this guide.











