首页 > 解决方案 > MaxMind 拉 Geolite2 得到 401 Unauthorized

问题描述

Geolite2 访问权限于 12/30 更改。

今天我注册了一个 Maxmind 帐户,注册了一个许可证密钥(一个“此密钥将用于 GeoIP 更新吗?”和一个不会).. 现在每次输入时我都会得到一个 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:~#

有什么想法我在这里做错了吗?

标签: geoipmaxmindgeoip2geolite2freegeoip

解决方案


想通了...我没有注意https://dev.maxmind.com/geoip/geoipupdate/#Direct_Downloads上的说明,其中说您需要将 token= 更改为 license_key= ...一旦我这样做了按预期工作。


推荐阅读