top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Geo Location extracted from visitors ip address

0 votes
593 views

Is there a way to extract out of some environmental variable the Geo location of the user being the city the user visits out website from? Perhaps by utilizing his originated ip address?

posted Jul 5, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote
 
Best answer

Yep. You can get an 11MB database (17MB uncompressed)

http://dev.maxmind.com/geoip/legacy/downloadable/

which you can use to either populate an existing database with the .CSV data there, or use the binary data blob in concert with the Python API (assume if u are using Python)

https://github.com/maxmind/geoip-api-python # Python + C
http://pypi.python.org/pypi/pygeoip/ # pure Python

Just be sure to adhere to the licensing terms.

answer Jul 5, 2013 by anonymous
0 votes

It is possible to look up the geographic region associated with a block of IP addresses. That does not necessarily bear any resemblence to the actual location of the user. It tells you the location of the Internet provider that registered the IP addresses.

answer Jul 5, 2013 by anonymous
Similar Questions
+3 votes

Any opensource code would be a great help :)

+1 vote

I want to count the number of active user in website and also I have to display their IP Address by using python Django framework.

...