top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

Geo Location extracted from visitors ip address

0 votes
109 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 Google+ Share Button LinkedIn Share Button Multiple Social 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.

0 votes

On a computer running Ubuntu 16.04, I am trying to change the static IP address of an ethernet device, while the system is running. Therefore, I edit the file /etc/network/interfaces.d/${IFNAME} and then execute the command 'service networking restart'. But with that, the ethernet device is not switched to the new IP address, but it keeps the old address and gets the "new" address as secondary IP address. In former versions of Ubuntu, with the same steps as above, the old IP address was replaced by the new one.

What do I have to do now to switch the IP address without a reboot?


Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#470/147, 3rd Floor, 5th Main,
HSR Layout Sector 7,
Bangalore - 560102,
Karnataka INDIA.
QUERY HOME
...