Limit the access of your admin panel only for specific IP

Protect wp-admin
Most of the wp users are suffered from the hacking of their blogs. This can be reduced alote by limitting the access for the wp-admin panel. This tutorial will tell about limiting the admin side using .htaccess for specific IP.
First you need to go wp-admin folder, locate .htaccess files. If you dont see that file then create a new file with name .htaccess in the wp-admin folder ( Dont edit your root .htaccess file)
Past the bellow code in your .htaccess files
AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName "Protect WP admin"
AuthType Basic
<LIMIT GET>
order deny,allow
deny from all
# whitelist IP address
allow from xx.xx.xx.xxx
allow from xx.xx.xx.xxx
allow from xx.xx.xx.xxx
</LIMIT>
AuthGroupFile /dev/null
AuthName "Protect WP admin"
AuthType Basic
<LIMIT GET>
order deny,allow
deny from all
# whitelist IP address
allow from xx.xx.xx.xxx
allow from xx.xx.xx.xxx
allow from xx.xx.xx.xxx
</LIMIT>
Facebook Comments