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
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
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.
Permalinks for GeoLite2 Country×
Below are permalinks that you can use to download the database.
Remember to replace YOUR_LICENSE_KEY.
https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=YOUR_LICENSE_KEY&suffix=tar.gz
https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=YOUR_LICENSE_KEY&suffix=tar.gz.sha256
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With