for those that are using amahi as a web server

User avatar
jfrenc14
Expert
Posts: 55
Joined: Wed Dec 03, 2008 8:13 pm

for those that are using amahi as a web server

Postby jfrenc14 » 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

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.

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

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

Postby moredruid » Fri Mar 13, 2009 4:18 am

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
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

User avatar
jfrenc14
Expert
Posts: 55
Joined: Wed Dec 03, 2008 8:13 pm

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

Postby jfrenc14 » Fri Mar 13, 2009 4:39 pm

the above method is for .htaccess

Who is online

Users browsing this forum: No registered users and 35 guests