How to close public access to wp-admin for security

Asked by:
LLFiggs / 70 Points
2013-04-09 11:41 am EST
One of my WordPress sites has become the constant target of brute force attacks on admin login. I've updated my login name and password to make them harder to crack, and I have a plugin that limits login attempts. The plugin, though, also keeps ME out after too many failed login attempts by would-be hackers.

I'm a non-techie and would like a simple, effective way to shut down access to wp-admin altogether and login from a different url address. I want to keep the ability to add users, but the public doesn't need the ability to login.

Thank you in advance for your help. And I really need simply stated step-by-step advice.

To ask this user for more information, please first login.

To submit an answer, please login.

Best answer chosen by User


16,266 Points
2013-04-09 12:24 pm EST
Hello LLFiggs,

Renaming the wp-admin or something similar is not really an option due to the way WordPress is coded. However, there are ways to make it a bit harder to access.

First, you can password protect the wp-admin directory. To do so, simply follow the instructions below:

How to password protect a directory

Also, access to the login area can gained by visiting This bypasses the wp-admin, so yo may want to prevent access to that file as well. Since it is located in the main area for your wordpress, password protecting that directory is not an option unless you want to password the entire site. You can, however, password protect that single file by using the .htaccess file. Below is an article on how to do that as well.

Password protecting a single file in .htaccess

Lastly, there is a wordpress plugin for protecting the wp-admin folder and the wp-login.php file. This can be found at:

Best Regards,
Scott M

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.