Repeated failed login attempts can put your WordPress website at risk. Automated bots may target your login page with hundreds of username and password combinations, while legitimate users can also trigger failed attempts when they forget their credentials.
WordPress does not limit failed login attempts by default. Anyone can keep submitting login details until a security plugin, firewall, or hosting-level protection blocks the requests.
You can reduce this risk by limiting login attempts, using strong passwords, enabling CAPTCHA, and restricting access to trusted IP addresses.
In this guide, you’ll learn six ways to limit failed login attempts in WordPress, configure reasonable lockout settings, and recover access if a security plugin blocks your login.
What Are Failed Login Attempts in WordPress?
A failed login attempt occurs when someone submits incorrect login credentials through your WordPress login form. This usually happens when a visitor enters the wrong username or password.
However, repeated failed login attempts can also indicate a brute-force attack. Attackers use automated bots to test different username and password combinations until they find valid credentials.
WordPress handles authentication, but it does not include a built-in setting to restrict the number of failed login attempts. You need a security plugin, firewall, or server-level rule to introduce that protection.
A plugin with login limits typically tracks failed attempts by IP address, username, or both. When someone reaches the configured limit, the tool temporarily blocks further login requests.
For example, you can allow five failed login attempts before blocking an IP address for 15 minutes. Some plugins also increase the lockout duration when the same visitor repeatedly triggers the limit.
What Causes Failed Login Attempts in WordPress?
Not every failed login attempt comes from a hacker. Several situations can trigger unsuccessful login requests on your website.
1. Brute-Force Attacks
A brute-force attack occurs when someone repeatedly tries different username and password combinations to access your WordPress dashboard.
Attackers often use automated scripts to submit login requests. These bots can test hundreds or thousands of combinations in a short period.
If your website does not limit login attempts, attackers can continue guessing credentials without encountering a login lockout.
2. Credential Stuffing
Credential stuffing happens when attackers use username and password combinations exposed in previous data breaches.
They try these credentials on other websites, hoping that users have reused the same passwords.
Even if your WordPress website has never experienced a data breach, reused credentials can put administrator accounts at risk.
3. Weak or Reused Passwords
Predictable passwords make accounts easier to compromise. Attackers can use common passwords, leaked credentials, and automated guessing tools to target accounts.
Passwords such as 123456, password, or a website’s name offer little protection.
Using the same password across multiple websites also increases the risk. If one account gets compromised, attackers may try those credentials on your WordPress website.
4. Users Entering Incorrect Login Details
Legitimate users can also generate failed login attempts.
For example, an administrator may forget their password, enter an incorrect username, or keep trying an outdated password saved in their browser.
If your security plugin uses strict login limits, these ordinary mistakes can trigger a temporary lockout.
5. Misconfigured Security Plugins
Security plugins let administrators configure how many failed attempts a visitor can make before a lockout.
However, an overly strict setting can block legitimate users. Incorrect IP detection can also cause problems, particularly when your website uses a CDN, reverse proxy, or shared network.
If multiple visitors appear to connect from the same IP address, one person’s failed attempts may affect everyone using that address.
6. Automated Requests Targeting XML-RPC
WordPress includes an XML-RPC endpoint that allows external applications and services to communicate with your website.
Attackers can target this endpoint with automated authentication requests instead of using the standard WordPress login page.
A login security tool that protects only wp-login.php may not cover XML-RPC or other authentication routes. Check which endpoints your security solution protects before assuming that your entire login process has adequate protection.
6 Effective Ways to Limit/Reduce Failed Login Attempts in WordPress
You can combine several security measures to reduce failed login attempts and make unauthorized access more difficult.
Start by controlling who can access your website, then strengthen the WordPress login process with the following methods.
01: Protect Your Website With a Dedicated Password Protection Plugin
Login attempt limits protect the WordPress authentication process. However, they do not restrict access to every page or section of your website.
If you need to prevent unauthorized visitors from viewing your website, a dedicated password protection plugin can provide another layer of access control.
Password Protected lets you password protect your entire WordPress website without requiring visitors to create individual WordPress accounts.
You can install Password Protected from your WordPress dashboard:
- Navigate to Plugins → Add Plugin.

- Search for Password Protected.

- Click Install Now, then Activate.

Here’s how to install and activate Password Protected Pro.
- Visit the Password Protected pricing page. Choose any plan and complete the purchase.
- You will receive an email containing the Password Protected Pro plugin ZIP file. Download the ZIP file and copy the license key.
- Go back to your WordPress dashboard, then to Plugins → Add Plugin → Upload Plugin.

- Select the ZIP file and click Install Now.

- Click Activate Plugin.

- Enter your license key and click Activate License.

Password Protected Pro is now active.
Password Protect Your Entire WordPress Site
After you activate the plugin, you can enable site-wide password protection from your WordPress dashboard.
- Open Password Protected from your WordPress dashboard.
- Go to the General tab and enable Password Protected Status.

- Configure the available protection and access settings.
- Set your password and configure the available access options.
- Save your changes.
For detailed instructions, check out our guide on: How to Password Protect Entire WordPress Site [2 Easy Methods]
02: Limit Password Attempts on Your Protected WordPress Content
Password Protected Pro includes a Limit Password Attempts feature that protects your password-protected website and content against repeated incorrect password submissions.
You can configure the maximum number of password attempts visitors can make before the plugin temporarily blocks further attempts. You can also set the lockdown duration to control how long visitors must wait before trying again.
- Go to Password Protected → General.

- Click on the Security Tab, then Attempt Limitation.

- Set your desired number of attempts and a lockdown time.
- Once you are done, click on Save Changes.
Once a visitor exceeds the allowed number of attempts, the plugin temporarily blocks further attempts according to your lockdown settings.
03: Use an External Plugin to Limit WordPress Login Attempts
A dedicated login security plugin is one of the most practical ways to control failed login attempts in WordPress.
For example, you can use AIO Login Pro to configure login attempt restrictions.
- Open AIO Login Pro from your WordPress dashboard.
- Navigate to its Login Protection → Limit Login Attempts.

- Enable it and save changes.
- Set the maximum number of failed login attempts allowed.
- Configure the lockout duration.

- Save your settings and test WordPress admin login.
The available options depend on the plugin’s configuration.
The exact settings depend on the plugin you choose. Here’s a link to the AIO Login’s step-by-step guide: How to Implement WordPress Limit Login Attempts [3 Easy Steps].
04: Use Strong and Unique Login Credentials
Strong login credentials reduce the chances of attackers successfully guessing your WordPress password.
Start by replacing predictable usernames such as admin. Although changing a username does not prevent failed login attempts by itself, it removes one common target from automated guessing attempts.
Follow these practices to secure your WordPress accounts:
- Create long, unique passwords for every administrator account.
- Avoid common words, names, dates, and predictable patterns.
- Never reuse passwords across different websites.
- Use a password manager to generate and store secure credentials.
- Create separate accounts for team members instead of sharing administrator credentials.
- Remove unused accounts that no longer need dashboard access.
Remember that strong passwords and login attempt limits solve different problems. Strong credentials make accounts harder to compromise, while login limits slow down repeated password guessing.
05: Enable CAPTCHA to Block Automated Login Attempts
CAPTCHA adds a verification step to a form to help distinguish human visitors from automated bots.
If you use Password Protected to restrict access to your website content or WordPress admin login page, you can enable Google reCAPTCHA to help prevent automated bots from submitting passwords on the protected screen.
- First, register your website with Google reCAPTCHA. If you haven’t done that, follow our detailed guide on How to Add Google reCAPTCHA.
- Go to Password Protected → General.

- Go to Security Tab, and click on reCAPTCHA.

- Select the appropriate settings.
- Enter the Site Key and Secret Key, then click Save Changes.
Now you have successfully enabled reCAPTCHA on your password protected site.
Keep in mind that CAPTCHA can add friction for legitimate users. Choose a verification method that provides a reasonable balance between security and usability.
You can also use alternative verification methods, such as hCaptcha or Cloudflare Turnstile, to protect your password forms.
06: Restrict Access by IP Address
IP-based restrictions let you control which IP addresses can access specific parts of your website.
- Go to Password Protected → General.
- In the configuration options, you will see “Allow IP addresses”.

- Enter the IP addresses which you wish to allow and click on Save Changes.
Be careful when blocking IP addresses. Shared office networks, VPNs, and mobile connections can cause multiple visitors to use the same public IP address. If you block the wrong address, you may prevent legitimate users from accessing your website.
How to Choose the Right Login Attempt Limit Settings
A login limiter needs reasonable settings. If you allow too many attempts, attackers get more opportunities to guess passwords. If you allow too few, legitimate users may get locked out after ordinary mistakes.
For most WordPress websites, start with the following configuration:
| Setting | Suggested Point | Purpose |
| Failed login attempts | 3–5 | Allows a few mistakes while restricting repeated guessing |
| Initial lockout | 15–30 minutes | Slows repeated attempts without creating an unnecessarily long block |
| Extended lockout | Increase after repeated lockouts | Discourages persistent attempts |
| Login notifications | Enable relevant alerts | Helps administrators identify suspicious activity |
| Failed-login logs | Enabled | Provides a record of unsuccessful login requests |
| Trusted IP addresses | Verified, stable IPs only | Reduces unnecessary lockouts for approved users |
These settings are starting recommendations, not universal requirements.
A small business website with one administrator may need different settings from a WooCommerce store or membership website with hundreds of users.
Review your failed-login logs after enabling the restrictions. If legitimate users frequently trigger lockouts, adjust the settings or improve your account recovery process.
Best Practices to Prevent Failed Login Attempts in WordPress
Login attempt limits work best when combined with other security measures.
Follow these practices to keep your WordPress login process secure without making it difficult for legitimate users to access their accounts.
- Keep WordPress, Plugins, and Themes Updated: Install updates regularly to address known security vulnerabilities, maintain compatibility with security tools, and remove unused plugins or themes.
- Protect Alternate Login Routes: Ensure your security plugin or firewall protects XML-RPC, WooCommerce customer logins, and custom login forms.
- Avoid Overly Strict Lockout Rules: Set reasonable retry limits and lockout durations to avoid blocking legitimate users. Monitor login activity and ensure administrators can regain access.
- Maintain a Reliable Password Recovery Process: Keep password-reset emails working, maintain administrator recovery methods, and document how to disable plugins.
- Monitor Suspicious Login Activity: Review failed-login logs for repeated attempts, suspicious IP addresses, and unusual patterns. Use this information to adjust security settings.
- Test Security Changes on a Staging Website: Test login restrictions on a staging copy before applying them to your live website. Check whether the plugin blocks repeated attempts, records visitor IPs correctly, and allows legitimate users to recover access.
Conclusion
Repeated failed login attempts can indicate brute-force attacks, credential stuffing, or ordinary user mistakes. Although WordPress does not limit these attempts by default, you can add protection through password-based access controls, a login-limiting plugin, strong credentials, CAPTCHA, two-factor authentication, and IP restrictions.
You should also have a recovery process in place, so legitimate users can regain access when a security tool triggers a lockout.
If you need to restrict access to your entire WordPress website or selected content, Password Protected offers another layer of protection. Start with the free version for sitewide password protection, IP-based access, and Google reCAPTCHA.
Upgrade to Pro when you need more granular content restrictions, multiple passwords, bypass links, and additional access controls.
Protect your WordPress website, control who can access your content, and reduce failed login attempts on your protected content with Password Protected.
Frequently Asked Questions
Does WordPress limit failed login attempts by default?
No. WordPress core does not include a built-in feature to limit failed login attempts. You need a security plugin, firewall, or server-level configuration to track unsuccessful logins and temporarily block visitors after repeated attempts.
How many failed login attempts should I allow in WordPress?
Allowing 3–5 failed attempts before a temporary lockout is a reasonable starting point for most websites. Set an initial lockout duration of 15–30 minutes and increase it for repeated violations based on your security requirements.
How can I limit WordPress login attempts without a plugin?
You can use custom PHP code, server-level rules, or a web application firewall to limit login attempts without a plugin. However, these methods require technical knowledge and ongoing maintenance. A dedicated plugin is usually easier to configure.
How long does a WordPress login lockout last?
The duration depends on your security plugin or firewall settings. Lockouts can last a few minutes or longer after repeated attempts. Most tools let administrators customize the duration and escalation rules.
How do I fix too many failed login attempts in WordPress?
Wait for the lockout to expire or ask another administrator to remove the restriction. If you cannot access the dashboard, temporarily disable the responsible plugin through FTP, SFTP, or your hosting File Manager. You can also use WP-CLI if you have SSH access.
Can CAPTCHA stop brute-force attacks?
CAPTCHA helps reduce automated login attempts by requiring visitors to complete a verification challenge. However, it cannot replace login limits, strong passwords, or other security measures. Use it alongside these protections for better security.
Does two-factor authentication prevent failed login attempts?
No. Two-factor authentication does not stop repeated incorrect password submissions. Instead, it adds another verification step, making unauthorized access more difficult even if an attacker obtains a user’s password.
Can I block login attempts from specific IP addresses?
Yes. You can block suspicious IP addresses using a security plugin, firewall, or server-level rules. You can also allowlist trusted IPs. If your website uses a CDN or reverse proxy, verify your IP detection settings before applying restrictions.
Does Password Protected limit WordPress login attempts?
Password Protected offers sitewide password protection, IP-based access controls, Google reCAPTCHA, and login and access monitoring. However, it does not function as a conventional failed-login limiting plugin for the WordPress administrator login form. Use a dedicated login-limiting tool for that purpose.
