Page 1 of 1

for those that are using amahi as a web server

Posted: Thu Mar 12, 2009 6:17 pm
by jfrenc14
I have been searching for a while to find a way to block ip address based by location to reduce the amount of hackers that could see the website. I found http://www.blockacountry.com you can select all the countries you want to block and it will out put a file to put in the webserver config file. once you get the output it generates migrate to the conf file

Code: Select all

/etc/httpd/conf.d/


find the file that goes with the page and where it has

Code: Select all

Order allow,deny Allow from all
replace it by the output.

The only problem I see with this is that ip address can change. I dont know how often they change from country to country but I am assuming it is very rare.

Re: for those that are using amahi as a web server

Posted: Fri Mar 13, 2009 4:18 am
by moredruid
cool!

you can also use mod_rewrite & mod_geoip for apache, more info here

or through your .htaccess file: Google search on how to block countries using .htaccess

Re: for those that are using amahi as a web server

Posted: Fri Mar 13, 2009 4:39 pm
by jfrenc14
the above method is for .htaccess