[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Blocking Australia & New Zealand from accessing a site (Raq4)



Quoting Dave~ <cobaltraq4@xxxxxxx>:

> Hello all,
> 
> I have a new client which asked about the possibility of blocking countries
> from seeing his web site.  The product he sells he cannot sell there-
> non-compete.  I can add a 'COUNTRY' field in the order form, make this field
> mandatory and leave the countries out of the drop-down list but he is asking
> if I can block them all together.  Anyway to block them from his v-site
> only?
> I do not want to block them for the entire server...
> 

There are some services out there that do IP based country look ups.
http://caida.org/ has the Net Geo service with Perl and Java classes available.
I've written a PEAR class to do the same - contact me if you're interested. It's
pretty damn good.  For large ISP's like AOL it doesn't work of course because
requests from Australia are piped through the US.

There are commercial services such as Service Objects as well
(http://www.serviceobjects.com/products/dots_ipgeo.asp)

Cheers,
 Graeme