for those that are using amahi as a web server
Posted: Thu Mar 12, 2009 6:17 pm
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
find the file that goes with the page and where it has
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.
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
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.