WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have looked but could not find either a plugin or code that allows only certin users to login in to my wordpress site e.g wan, velma, bob and no other.

Does anyone know how to do this.

Thanks Tim

share|improve this question
How many users do you have to block out? You could simply disable other users. – stffn Apr 25 '12 at 13:29
Thanks for your comment Steffen, I want this for security reasons, to prevent brute force break-ins, it is impossible to deny access to every ip address that is trying to access my site – Tim Apr 25 '12 at 14:33
up vote 1 down vote accepted

What you can do is to set your specific list of users to admin, and use Theme my Login to redirect admin users to the page you want to see, and to set all other roles to redirect to an invalid page which they can't have access.

share|improve this answer
Thanks Extrakun, I like this solution. – Tim Oct 28 '12 at 14:22

Not sure I understand the question--have you tried just disabling registration (Settings > General > Uncheck "anyone can register")? Once registration is disabled, you can just delete any accounts that you don't want logging in.

Does this solve your problem, or is there some additional requirement?

If you're worried about login security in general, I'd suggest a two-factor authentication helper, like Duo: http://wordpress.org/extend/plugins/duo-wordpress/ Basically, it requires that you answer a phone call, or type in a code that's texted to your phone before it lets you log in. Pretty cool! I personally had some trouble getting the Duo plugin to play nice with some custom login stuff I'd written, but if you don't have any other login security plugins, it works well.

share|improve this answer
Thanks MathSmath I will check out the plugin. – Tim Oct 29 '12 at 13:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.