0

I have a problem to find the current state of every visitor on my website.Suppose if a user open my website in Mumbai i can show my all adds of mumbai.

if i user ip use the code of ip address it's show the system ip address of each visitor but i need location(STATE)

Thanks for your great help

HRK
  • 287
  • 2
  • 15
shakti
  • 29
  • 1
  • 6
  • A little google will help. I found this http://www.geobytes.com/IpLocator.htm – Subir Kumar Sao Dec 04 '13 at 12:16
  • IP is not correct way, if you behind proxy and IPS then you will get result on approximation, I suggest to use geolocation api of html 5 and using that longitude latitude in other services of google will help see the following http://stackoverflow.com/questions/13428284/get-city-state-from-latitude-longitude-via-jquery-ajax-with-google-maps-geocode – HRK Dec 04 '13 at 12:20
  • "You are currently at Anonymous proxy" – dyesdyes Dec 04 '13 at 12:29
  • check this post http://stackoverflow.com/questions/7766978/geo-location-based-on-ip-address-php – DeyaZ Dec 04 '13 at 12:34
  • @HRK Even geolocation api relies on IP address. Behind proxy it also will give inaccurate information. – Subir Kumar Sao Dec 04 '13 at 12:35
  • It always seems like the eager local sl*ts are 5 cities away from my location. Gosh I wish they were closer. – MonkeyZeus Dec 04 '13 at 13:56
  • HTML5 will provide you an accurate location, however it needs client to grant you the access of their location information. Changes are they won't. IP to location locator is the only non-intrusive option to estimate the location of an IP with some trade-off of accuracy. From your question, are you looking for PHP solution? Check this http://www.ipinfodb.com or http://lite.ip2location.com. Both are free. – Chris Lim Dec 06 '13 at 09:16

0 Answers0