News for hackers. Stuff that matters.
Re:Ifconfig.co – Hacker-friendly “What is my IP address” by nerdponx on Tuesday March 30, 2021 @10:37AM (#26635073)
Good points both.

That said, do you know of any software library that exposes the Geoip database (or at least Geoip Lite which you one easily obtain for free) in a nice API? Like how a lot of programming languages have tzinfo/tzdata libraries for querying the Tz database.

Re:Ifconfig.co – Hacker-friendly “What is my IP address” by cryvate1284 on Tuesday March 30, 2021 @11:54AM (#26636140)
Maxmind do APIs for a bunch of language. I've used the python one and it works well (with Lite), but see here their list:

https://dev.maxmind.com/geoip/geoip2/web-services/

Re:Ifconfig.co – Hacker-friendly “What is my IP address” by nerdponx on Tuesday March 30, 2021 @12:14PM (#26636438)
I should clarify that I was looking for an "offline" API/library that I can use against a local copy of the Lite database, but this is great stuff too.
Re:Ifconfig.co – Hacker-friendly “What is my IP address” by luhn on Tuesday March 30, 2021 @01:07PM (#26637238)
Not sure what language you're looking for, but those exist too. Here's a Python one: https://maxminddb.readthedocs.io/en/latest/
Re:Ifconfig.co – Hacker-friendly “What is my IP address” by cryvate1284 on Tuesday March 30, 2021 @02:42PM (#26638565)
If you click through one of the links (e.g. Python) you will see it does allow you to do so!

https://pypi.org/project/geoip2/

Re:Ifconfig.co – Hacker-friendly “What is my IP address” by stevenicr on Tuesday March 30, 2021 @07:30PM (#26641833)
I thought maxmind has some kind of terms change that forced account signup and some other issues 'because of some privacy law' like gdpr - maybe the Cali one?

So it has ruined my second favorite wordpress security plugin - and MaxMind not really usable like it once was (?)

Re:Ifconfig.co – Hacker-friendly “What is my IP address” by banana_giraffe on Tuesday March 30, 2021 @01:18PM (#26637406)
MaxMind offers a small version of their database API for free:

https://dev.maxmind.com/geoip/geoip2/geolite2/

In practice it's good enough for many purposes. It's actually the version of the database that ifconfig.co uses.