9

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

Peter Gosling
  • 101
  • 1
  • 1
  • 2

4 Answers4

19

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.

sa-mustafa
  • 283
  • 4
  • 10
6

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
s01ipsist
  • 3,022
  • 2
  • 32
  • 36
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

Ashish Chaturvedi
  • 1,352
  • 3
  • 13
  • 37
0

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