Detect country by IP
Moderator: General Moderators
Detect country by IP
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?
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: Detect country by IP
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.