Re: FN-FORUM: Country detection
date posted 23rd January 2005 17:26
Jonathan Chong wrote:
> An advertiser has contacted me about advertising on one of my sites. He
> wants the ads to only target audiences from the UK.
>
> I've done some testing and searching, and the solution I came up with
> was to store a range of IP addresses in a table and check that against
> the user's IP.
>
> The problem is, it doesn't always work - I'm on BT and my IP address
> doesn't come up in the IP addresses table.
>
> If anyone has an idea on how I could better achieve "country detection",
> I'd be much obliged!
I've used GeoIP before, seemed to work quite well:
http://www.maxmind.com/app/products
Cheers,
Richard.
http://www.webcogs.com