views:

65

answers:

4

Which detect location most accurate.

+2  A: 

http://www.maxmind.com/ 's free API will get you to country level, and city for some IPs, if you pay them you can get some more detail, this information is a good default, but not 100% accurate. It's the best I've found.

Aquarion
They have a free "GeoLite City" database as well.
deceze
Hadn't notice that, have edited reply accordingly. Thanks :)
Aquarion
A: 

Here's a completely free web service

http://www.hostip.info/

Galen
A: 

I've used IP2Location before and it works great. The free version will only return the country but the pay versions are very accurate and will return alot more information. They have API's for a lot of common languages.

thekaido
A: 

The Geo IP PECL package and Net_GeoIP PEAR package both provide an interface to the maxmind location database (that been mentioned in other answers) for PHP.

Tom Castle