WordPress.org

Ready to get started?Download WordPress

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.

User Locker

This plugin locks user account after given number of incorrect login attempts. This makes brute force and dictionary attacks nearly impossible.

How can I integrate my plugin with User Locker?

User Locker provides special functions (placed in "Public functions" section in code). I recommend to use them instead of calling methods of UserLocker class directly - the latter ones may change without any notice. There are also few hooks which you can use too.

There are following functions and hooks available:

  • function user_locker_lock_user( $user_id, $reason = '' ) - Lock user account (user may unlock it by requesting new password). Parameters: User ID; New lock reason (may be empty string) or False to do not update lock reason. This function calls the user_locker_lock_user after locking user account with one parameter - User ID;
  • function user_locker_unlock_user( $user_id, $reason = false ) - Unlock user account. Parameters: User ID; New lock reason (may be empty string) or False to do not update lock reason. This function calls the user_locker_unlock_user after unlocking user account with one parameter - User ID;
  • function user_locker_disable_user( $user_id, $reason = '' ) - Disable user account (user cannot enable it, only admin can do this). Parameters: User ID; New disable reason (may be empty string) or False to do not update disable reason. This function calls the user_locker_disable_user after disabling user account with one parameter - User ID;
  • function user_locker_enable_user( $user_id, $reason = false ) - Enable user account. Parameters: User ID; New disable reason (may be empty string) or False to do not update disable reason. This function calls the user_locker_enable_user after enabling user account with one parameter - User ID;

Requires: 2.7 or higher
Compatible up to: 3.2.9
Last Updated: 2011-10-24
Downloads: 45,976

Ratings

4 stars
4.9 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

100,2,2
100,1,1
100,1,1
100,1,1
100,1,1 100,2,2 100,8,8
100,3,3
100,1,1
100,1,1 100,3,3
100,1,1
100,3,3
100,2,2
100,2,2
100,4,4
0,1,0
100,1,1
100,1,1
100,1,1
100,1,1