Add an additional layer of protection to your WordPress login and make sure bad actors have a hard time guessing your user's login credentials.
Out of the box, WordPress allows unlimited attempts to log in. This opens up opportunities for attackers to crack passwords simply by trying over and over again. This kind of attack is called brute-force, and Protect Login mitigates this by slowing down the login after a series of subsequent failed attempts.
But we did not stop there. We’re also working on ways to improve the security of your WordPress passwords. Currently, we do this by allowing you to enforce a password policy to make sure your users don’t use weak passwords for their accounts.
FAQ
Why did you build this?
We care about WordPress and about keeping WordPress sites secure. So we took the code of the original Limit Login Attempts plugin and built on top of it. We did it for you: Protect Login is 100% free, with no nasty upsells and no scare marketing. You’ve got better things to do, haven’t you?
Why don’t you reset failed attempts after a successful login?
That’s very much on purpose. If we did, you could brute-force the “admin” password simply by logging in as your own user every fourth attempt — which would defeat the point.
How do I know if my site is behind a reverse proxy?
If you’re not sure, chances are it isn’t. A reverse proxy is a server that sits between your site and the internet – often handling caching or load-balancing – and it makes working out the correct client IP a little trickier. If you do use one, switch on proxy mode under Settings → Protect Login → Advanced and add your proxy’s IP or CIDR range to the trusted-proxies list, so a forwarded header can’t be spoofed.
Can I put my own IP on an allowlist so I don’t get locked out?
Yes. There’s an allowlist tab in Protect Login’s settings, and you can add your current address with a click.
I locked myself out while testing. What now?
Either wait until your account or IP is released, or — if you have FTP or SSH access — rename the wp-content/plugins/protect-login folder to switch the plugin off, log in, and rename it back.
Do you support IPv6?
Yes. As long as your web server passes an IPv6 address through to WordPress.
Where do I report security bugs found in this plugin?
Please report security bugs found in the source code of the Protect Login plugin through the Patchstack Vulnerability Disclosure Program. The Patchstack team will assist you with verification, CVE assignment, and notify the developers of this plugin.
ChangeLog
1.5.1
- Bugfix: Typos
- Bugfix: Fixed a fatal error (TypeError) during Remote API list synchronisation.
- Bugfix: Fixed a fatal error that could occur in proxy (“client type”) mode when no valid forwarded address was present.
- Bugfix: Fixed an “Array to string conversion” warning on the settings page when the dashboard-counter option had not been saved yet.
- Improvement: Added “Trusted proxies” setting. In proxy mode the client IP is now only used when the request arrives via a configured trusted proxy.
1.5.0
- Tested with WordPress 7.0
- Bugfix: Removed an empty list item that appeared above the locked-out address counter in the “At a Glance” dashboard widget.
- Bugfix: Locking out an IP address no longer clears all other active lockouts.
- Bugfix: Remote API list synchronisation now runs as intended (the previous check never triggered a sync); local block-/allowlist entries are no longer lost when merging with remote lists.
- Bugfix: Remote API calls now use the correct endpoint paths, so block, allow, release and list operations work against a paired site.
- Bugfix: Lockout times in the settings list and WP-CLI output now use the site’s configured time zone instead of always showing UTC.
- Bugfix: Corrected the swapped “your IP has (not) changed” message on the allowlist screen.
- Bugfix: Reverse-proxy (“client type”) handling now works as configured, and falls back to the direct connection address when no valid forwarded address is present.
- Bugfix: Hardened against division-by-zero and undefined-value notices when retry/notification thresholds are set to 0 or no attempts have been recorded yet.
- Bugfix: Activation and uninstall routines are now registered against the main plugin file so they run reliably.
- Improvement: The settings override filters now work as documented.
- Improvement: Removed an unnecessary PHP session start on every authentication and a redundant database write on every admin page load.
- Improvement: Added
Text Domain and Domain Path plugin headers and a translation template.
- Development: Codebase migrated to new Coding Standard.