Page 1 of 1

Detect country by IP

Posted: Tue Sep 28, 2010 5:38 pm
by tonchily
As the title says, how can I detect a country of the visitor based on the IP address he's surfing on my website and echo it out?

Re: Detect country by IP

Posted: Tue Sep 28, 2010 5:44 pm
by John Cartwright
There is no algorithm to determine geographic location strictly based on IP. As such, you need an updated GeoIP service (since IP blocks are traded frequently), such as MaxMind.