Protecting wp-admin folder with htaccess
-
My site is hosted on a godaddy shared server. I used their web-based control panel to protect the wp-admin folder which created an htaccess file in the wp-admin folder with the below lines in it:
authtype basic authgroupfile /dev/null authuserfile /home/content/xx/xxxxxxxx/htconfig/.htpassword.ghtpassword authname "Secure Area" require user myusernameI then inserted the below lines to prevent the username/password prompt on pages other then the wp admin login page:
<Files "admin-ajax.php"> Order allow,deny Allow from all Satisfy any </Files>When I hit my wp admin login page, I first have to enter my username/password combo set up in the htaccess file and then I am dropped into the wp admin login page.
This morning I received the following email from wordfence:
A user with IP address 211.110.140.196 has been locked out from the signing in or using the password recovery form for the following reason: Exceeded the maximum number of login failures which is: 10. The last username they tried to sign in with was: ‘admin’
User IP: 211.110.140.196Sure enough when I checked the wordfence logs there were 10 login attempts. But when I checked my apache logs I did not see any login attempts. Is my understanding of how I have protected my wp-admin folder incorrect? I do not understand how someone could have hit my wordpress admin login page without first cracking the login credentials setup for my wp-admin folder. Is it because the htaccess file for the wp-admin folder lives within my wordpress install directory? Should i try to locate it one level up, outside the html director?
site: brandonmarkwalder.com
Thanks.
The topic ‘Protecting wp-admin folder with htaccess’ is closed to new replies.