-
Notifications
You must be signed in to change notification settings - Fork 28
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
Comments
Could potentially use https://freegeoip.net/ API. |
@NexEng Ah, yes that would be an easy solution. |
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. |
@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. |
No description provided.
The text was updated successfully, but these errors were encountered: