03
Feb
2013

How to Password Protect wp-admin folder

Posted in: WordPress Comments Off

For security reason, it is highly recommended to password protect your wp-admin folder.
wordpress

In this tutorial I will show you how you can password protect your wp-admin folder on a cPanel hosting.

Step 1:

Login in cPanel using url:
yourdomain.com/cpanel

Step 2:

Click Password Protect Directories
cPanel-password-protect

Step 3:

Click on wp-admin folder.
cPanel-password-protect-1

Step 4:

Check the box Password protect this directory and give it a name.
cPanel-password-protect-2

Step 5:

Create a user who can access this protected wp-admin folder.
cPanel-password-protect-3

Step 6:

After password protection, you may not be able to get login page and browser will show some error message like:
404 Error or a Too many redirects error

The page isn’t redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

Solution:
Open .htaccess file located in public_html folder.
Add following code at top:

ErrorDocument 401 default

Done!!
Enjoy a more secured WordPress site.

About the Author

Name: Ravi Shekhar
I love learning and sharing web stuffs.

Share this post

Twitter Facebook Google Buzz Digg StumbleUpon Delicious Technorati
Both comments and pings are currently closed.

Comments are closed.