How to download GeoLite2-Country.mmdb.gz now need to add access code
Asked Answered
C

4

11

Plugin I have uses this url which no longer works as need a license key obviously now https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz

I have tried this url (Note: I have removed my license key from the below) but it doesn't work any ideas

https://download.maxmind.com/app/geoip_download_by_token?edition_id=GeoLite2-Country&license_key={LICENSE KEY HERE}&suffix=mmdb.gz

Cupid answered 28/1, 2020 at 10:8 Comment(1)
github.com/wp-statistics/GeoLite2-CityBrambling
S
22

I think instead of going through the lengthy registration process, one should download it from this github repo. At the time of this writing, this repo was very recent.

Schiffman answered 31/12, 2021 at 12:26 Comment(5)
A helpful link. Thank you @sa-mustafa.Balzac
Still actual, updated two days ago. Thank's!Centrosymmetric
Still up to date and working in 06-2023 !Hertford
Still works very good.Pease
Not working properly, I tested itJenkins
A
7

You will need a (free) license key. You can use this bash 1 liner with YOUR_LICENSE_KEY

curl "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=YOUR_LICENSE_KEY&suffix=tar.gz" -o GeoLite2-Country.tar.gz \
  && tar -xzvf GeoLite2-Country.tar.gz \
  && mkdir -p /var/opt/maxmind/ \
  && mv GeoLite2-Country_*/GeoLite2-Country.mmdb /var/opt/maxmind/GeoLite2-Country.mmdb
Arched answered 4/9, 2020 at 22:44 Comment(3)
Did you mean to include (your?) license key in that example?Thionic
It was only an (invalid) sample, answer clarified to use a variable. Thanks.Arched
But how can we generate a license key ? On the GeoIP2Lite wabesite, we need to login to create license key... But I'm not working for an entreprise !Cohla
F
1

I read this information (https://dev.maxmind.com/geoip/geoipupdate/). You can try this https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key={LICENSE KEY HERE}&suffix=tar.gz

Frequency answered 5/2, 2020 at 15:4 Comment(0)
G
1

Permalinks for GeoLite2 Country×

Below are permalinks that you can use to download the database.

Remember to replace YOUR_LICENSE_KEY.

Database URL

https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=YOUR_LICENSE_KEY&suffix=tar.gz

SHA256 URL

https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=YOUR_LICENSE_KEY&suffix=tar.gz.sha256

Gradeigh answered 2/8, 2021 at 12:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.