Skip to contentSkip to conversation

update MaxMind URL's

PATCH New Philip Prindeville 1 participant 1 message Apr 19, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 update MaxMind URL's

From: Philip Prindeville <[email protected]>

---
 geoip/xt_geoip_dl | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
geoip/xt_geoip_dl +4 -1
old mode 100755
new mode 100644
index 1de60442a8040f55d775d134d7a8ea707582d71e..e46e084160a244aadf0cb66b05e43e0a71009134
@@ -1,7 +1,10 @@
 #!/bin/sh
 
+YOUR_LICENSE_KEY='your-license-key-here'
+
 rm -rf GeoLite2-Country-CSV_*
 
-wget -q http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country-CSV.zip
+wget -q "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&license_key=${YOUR_LICENSE_KEY}&suffix=zip" -O GeoLite2-Country-CSV.zip
+
 unzip -q GeoLite2-Country-CSV.zip
 rm -f GeoLite2-Country-CSV.zip
Signature · 1 line
2.17.2