How can I determine the location of the website being viewed?

How can I access some Geo encoding for the website I am creating?

I would like to extract the location information where the site is viewed / used. This will allow the registration process to go more smoothly when users do this.

Any suggestions for VB.NET in Visual Studio 2008?

thanks

+4
source share
3 answers

I would suggest just using Google Analytics . It is free and fairly reliable.

They geocode all requests to your site, so you can see them on the map and what not.

enter image description here

+1
source

If you want to do this under your control, this process is often called geo-ip. There are several ways to get this data, and I do not have enough personal experience to offer a specific provider.

https://www.google.com/search?q=geo-ip

if you want a really low level, you look at the whois ip client entry and see who owns the ip and their contact address. It seems that most of the ones mentioned in the Google search are all the same.

I used some free search databases because of asp.net, but I usually did all the heavy lifting in sql sprocs and just dumped the result to the cutting edge, because at that time I had more sql horsepower than the web server.

+1
source

Free geo ip is a free web service that will provide you with all the information you need.

http://freegeoip.net/static/index.html

You call the service

http://freegeoip.net/{format}/{ip_or_hostname} 

And the service returns in JSON format:

 show({"city": "Mountain View", "region_code": "CA", "region_name": "California", "metrocode": "807", "zipcode": "94043", "longitude": "-122.057", "country_name": "United States", "country_code": "US", "ip": "209.85.145.147", "latitude": "37.4192"}); 

Since it is free, you can only process 1000 requests per hour.

+1
source

All Articles