Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why honeypot doesn't track the location from IP Address? #41

Open
agusmakmun opened this issue Nov 25, 2016 · 7 comments
Open

Why honeypot doesn't track the location from IP Address? #41

agusmakmun opened this issue Nov 25, 2016 · 7 comments

Comments

@agusmakmun
Copy link

This plugin is verry usefull, but why doesn't track the location? as an example by using the GeoIP with pygeoip and track the city, or else...

>>> gi = pygeoip.GeoIP('GeoIPCity.dat')
>>> gi.record_by_addr('64.233.161.99')
{
    'city': u'Mountain View',
    'region_code': u'CA',
    'area_code': 650,
    'time_zone': 'America/Los_Angeles',
    'dma_code': 807,
    'metro_code': 'San Francisco, CA',
    'country_code3': 'USA',
    'latitude': 37.41919999999999,
    'postal_code': u'94043',
    'longitude': -122.0574,
    'country_code': 'US',
    'country_name': 'United States',
    'continent': 'NA'
}
>>> gi.time_zone_by_addr('64.233.161.99')
'America/Los_Angeles'
@pydanny
Copy link

pydanny commented Feb 17, 2017

Sounds like a great idea @agusmakmun. Can you submit a pull request?

@agusmakmun
Copy link
Author

hello @pydanny, can you suggest me to save this value of record_by_addr? by using models.TextField or what?

@agusmakmun
Copy link
Author

#42 pull request

@mkoistinen
Copy link

It should be noted that the free version of the MaxMindDBs are discontinued as of January 1, 2019. See here: https://support.maxmind.com/geolite-legacy-discontinuation-notice/

@m-cameron
Copy link

@mkoistinen any mean that using ip2location lite to replace maxmind in django ?

@mkoistinen
Copy link

Could be. Looks like they have a Python library, should be easy enough to use that.

@oschwald
Copy link

oschwald commented Jun 3, 2018

For what it is worth, only the GeoLite Legacy databases will be discontinued. The GeoLite2 databases will continue to be provided. The geoip2 module supports GeoLite2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants