How to Password Protect wp-admin folder
In this tutorial I will show you how you can password protect your wp-admin folder on a cPanel hosting.
Login in cPanel using url:
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
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
Open .htaccess file located in public_html folder.
Add following code at top:
ErrorDocument 401 default
Enjoy a more secured WordPress site.