Doing, Learning, and Sharing

Try to be The Best

Dec
17
2009

Filter IP for Access Apache web server

To Filter IP for Access Apache Web Server, maybe U can Follow this syntac. Edit at httpd.conf

Alias /inprov/ "/www/docs/"

<Directory "/www/docs/">
#AllowOverride MultiViews Indexes
#Options none
Order allow,deny
#Allow from all
deny from 172\.16\.--> Black list IP with header 172.xx.xx.xx
Allow from 172\.36\. --> Allow access from IP with header 172.36.xx.xx
Allow from 127.0.0.1
Allow from localhost
Allow from 172.16.36.170

</Directory>

Try, and I hope this is very helpfull.

Powered by WordPress