Htaccess rules to disable access to a directory based IP
Posted: Sat Dec 15, 2012 2:58 pm
Inside the directory that you want to restrict access based on Ip address create a .htaccess file
Add the below lines to the htaccess filevi .htaccess
order deny,allow
deny from all
allow from YOUR_IP