WordPress.org

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Limit Login Attempts

Limit rate of login attempts, including by way of cookies, for each IP. Fully customizable.

Why not reset failed attempts on a successful login?

This is very much by design. Otherwise you could brute force the "admin" password by logging in as your own user every 4th attempt.

What is this option about site connection and reverse proxy?

A reverse proxy is a server in between the site and the Internet (perhaps handling caching or load-balancing). This makes getting the correct client IP to block slightly more complicated.

The option default to NOT being behind a proxy -- which should be by far the common case.

How do I know if my site is behind a reverse proxy?

You probably are not or you would know. We show a pretty good guess on the option page. Set the option using this unless you are sure you know better.

Can I whitelist my IP so I don't get locked out?

First please consider if you really need this. Generally speaking it is not a good idea to have exceptions to your security policies.

That said, there is now a filter which allows you to do it: "limit_login_whitelist_ip".

Example: function my_ip_whitelist($allow, $ip) { return ($ip == 'my-ip') ? true : $allow; } add_filter('limit_login_whitelist_ip', 'my_ip_whitelist', 10, 2);

Note that we still do notification and logging as usual. This is meant to allow you to be aware of any suspicious activity from whitelisted IPs.

I locked myself out testing this thing, what do I do?

Either wait, or:

If you know how to edit / add to PHP files you can use the IP whitelist functionality described above. You should then use the "Restore Lockouts" button on the plugin settings page and remove the whitelist function again.

If you have ftp / ssh access to the site rename the file "wp-content/plugins/limit-login-attempts/limit-login-attempts.php" to deactivate the plugin.

If you have access to the database (for example through phpMyAdmin) you can clear the limit_login_lockouts option in the wordpress options table. In a default setup this would work: "UPDATE wp_options SET option_value = '' WHERE option_name = 'limit_login_lockouts'"

Requires: 2.8 or higher
Compatible up to: 3.3.2
Last Updated: 2012-6-1
Active Installs: 1+ million

Ratings

4.7 out of 5 stars

Support

0 of 6 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

2 people say it works.
0 people say it's broken.

100,1,1 100,1,1
100,4,4 100,2,2
100,1,1
100,1,1 100,1,1
100,1,1
100,9,9 100,1,1
83,6,5 80,5,4 100,2,2 100,1,1
100,2,2 100,8,8 100,3,3 100,1,1 100,1,1
100,1,1
100,2,2
100,6,6 100,1,1
100,1,1 50,2,1
100,6,6 73,11,8
80,5,4
80,5,4 100,1,1
88,8,7
100,3,3
100,5,5 95,21,20
100,8,8
100,32,32 100,1,1 100,1,1
100,9,9 100,8,8 100,10,10
100,7,7
94,32,30
100,16,16
68,19,13
98,65,64
94,16,15
100,7,7
94,16,15
100,1,1
92,12,11
100,9,9
88,17,15
100,3,3
100,1,1
100,9,9
96,25,24
85,13,11
100,28,28
100,11,11
90,21,19
88,17,15
100,1,1
100,1,1
0,1,0
100,11,11
100,2,2
100,1,1
100,2,2