几天前开始我无法下载
http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
我用来启用ngx_http_geoip_module模块的数据库.
它一直是免费的,但现在可用.有没有人知道这个数据库最近的变化?
我一直在使用 geoip php 扩展。这个扩展没有像以前那样为我提供纬度和经度。
查看 maxmind 网站,我可以阅读:
注意:经过仔细考虑,考虑到客户的反馈,我们决定不从 GeoLite2 数据库中删除纬度和经度坐标。我们正在审查所有 GeoLite2 和 GeoIP 数据库中使用的坐标,以确保不存在误用风险。
是否有另一种方法(或免费替代方法)从 IP 地址获取纬度和经度?
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:~#
Run Code Online (Sandbox Code Playgroud)
你知道我在这里做错了什么吗?
我使用的是GeoIp,带有纯PHP代码。.但是GeoIp2变成了命名空间,依此类推,此刻,我无法找到如何使用它的方法。.我已经下载了GeoLite2-Country.mmdb,现在如何获取IP的国家名称,即123.123.123.123。
ps我没有GIT / COMPOSER等。