简体   繁体   中英

maxmind free geoip DB returns wrong country

I am using maxmind free DB (geoip.mmdb) and I have a script that update it to latest on daily basis, however, yesterday I noticed it started to return wrong countries by IP Address.

an IP address in Jordan (80.10.53.78).

for example:

$location = GeoIP::getLocation("80.10.53.78");

returns the following response

["ip" => "80.10.53.78",
 "isoCode" => "FR",
 "country" => "France",
 "city" => null,
 "state" => null,
 "postal_code" => null,
 "lat" => 48.8582,
 "lon" => 2.3387,
 "timezone" => "Europe/Paris",
 "continent" => "EU",
 "default" => false,
 ]

double checking on https://www.maxmind.com/en/geoip-demo , it returned the correct country. being Jordan.

How to fix this?

Thanks for the report. I work at MaxMind and we are working on a fix for the issue you have raised and expect to post updated GeoLite databases later today.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM