Search code examples
geoipmaxmindgeoip2geolite2freegeoip

MaxMind pulling Geolite2 gets 401 Unauthorized


Geolite2 access changed on 12/30.

Today I registered for a Maxmind account, registered a license key (both one that "Will this key be used for GeoIP Update?" and one that will not) .. and now each time I enter I get a 401:

smachine:~# wget "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN-CSV&token=n3fU000000000000&suffix=zip"
--2020-01-13 00:37:23--  https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN-CSV&token=n3fU000000000000&suffix=zip
Resolving download.maxmind.com (download.maxmind.com)... 104.16.37.47, 104.16.38.47, 2606:4700::6810:252f, ...
Connecting to download.maxmind.com (download.maxmind.com)|104.16.37.47|:443... connected.
HTTP request sent, awaiting response... 401 Unauthorized

Username/Password Authentication Failed.
smachine:~#

Any ideas what I'm doing wrong here?


Solution

  • Figured it out ... I failed to heed the instruction on https://dev.maxmind.com/geoip/geoipupdate/#Direct_Downloads where it said that you need to change token= to license_key= ... once I did that it worked as expected.