How To Disable File Access On A Server From A Certain IP
Here you will see a short instruction of how you can disable access to a file on your server from a certain IP. We will use .htaccess file to do that.
Use ‘allow from’ directives
in .htaccess file
:
<Files “rss.xml”>
Order Allow,Deny
Allow from all
#Deny access for specified IP-addresses:
Deny from 127.127.127.127
Deny from 127.127.127.128
</Files>