Forum Moderators: phranque

Message Too Old, No Replies

Country Blocking

country blocking

         

Bridge

11:10 am on Aug 23, 2005 (gmt 0)

10+ Year Member



I wish to block the following countries from my server:

China
Korea
Nigeria
Brazil
The Phillipines

My business has no interest in those countires.

I understand .htaccess would do this on a site by site basis, but I'd like to use IPFW if possible and block any possible server access.

Could anyone inform me of what's needed to be done to execute that?

For example, which file would I edit on the server, and in what format would the IPs be added, indeed does such a list exist for entire country IP blocks?

Many thanks

dcrombie

11:36 am on Aug 23, 2005 (gmt 0)



[freebsd.org...]

;)

Bridge

10:53 am on Aug 25, 2005 (gmt 0)

10+ Year Member



Thanks for that.. now the hard bit is to work it out.

iProgram

1:42 pm on Aug 25, 2005 (gmt 0)

10+ Year Member



Take a look of the free GeoIP for apache:

[maxmind.com...]