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

geoip support #9

Open
jonschipp opened this issue Jul 20, 2015 · 4 comments
Open

geoip support #9

jonschipp opened this issue Jul 20, 2015 · 4 comments

Comments

@jonschipp
Copy link
Owner

No description provided.

@clinttepe
Copy link
Contributor

Could potentially use https://freegeoip.net/ API.

@jonschipp
Copy link
Owner Author

jonschipp commented Jul 11, 2017

@NexEng Ah, yes that would be an easy solution.

@clinttepe
Copy link
Contributor

The above API works, but is quite slow. So far using geoiplookup (geoip-bin dpkg) is the fastest way to achieve country-level lookups. Testing on a web server using real access log data resulted took less than a second per thousand IPs. The freegeoip.net API provided region-level data, but took nearly 100 times longer for the same IP list.

If the geoiplookup solution sounds acceptable, then I will finish out a PR.

@jonschipp
Copy link
Owner Author

@clinttepe Yes, geoiplookup is acceptable. We need to have it backwards compatible though so that if the necessary binary is not installed then it's not used.

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

No branches or pull requests

2 participants