Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
28
rated 0 times [  32] [ 4]  / answers: 1 / hits: 75816  / 14 Years ago, sun, november 14, 2010, 12:00:00

Possible Duplicate:

Location detecting techniques for IP addresses






For our website it's important to know from exactly which country our visitor is coming from.



I guess the best answer for my question would be the simple geo location feature of current browser systems, which just ask the user if the website is allowed to see his geographic location: http://dev.w3.org/geo/api/spec-source.html



but I don't want to bother visitor with questions, I would love to automatically detects the visitor's location (country should be enough.)



What's the best way to do this?
- what ip database would be the best?
- is the browser header trustable enough to detect his country? (en-us en-en en-ca?)
What's the best solution?


More From » php

 Answers
54

NetImpact provide a free API for geolocation lookup by IP, ProgrammableWeb also has a roundup of GeoIP lookup providers. This involves a small amount of latency while your application completes an API call (unless your application can use a non-blocking call) but is the least intrusive manner of detecting a visitor's country of origin.


[#94963] Friday, November 12, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tayaw

Total Points: 749
Total Questions: 88
Total Answers: 86

Location: Djibouti
Member since Sun, Feb 27, 2022
2 Years ago
tayaw questions
;