Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GeoIPCity.dat file where do I find it?

Tags:

geoip

I have a file GeoIPCity.day on one of my sites. The original developer told me it was a free file from maxmind.com and I should update it every month. I have looked on maxmind.com and haven't been able to find a file with the exact same name. Any idea what file I should used as the update? Here are the list of files I was able to find on the website: http://dev.maxmind.com/geoip/legacy/geolite/#Downloads

like image 548
Ron Avatar asked Jun 16 '15 06:06

Ron


Video Answer


1 Answers

Free version of the GEO IP City was rename from GeoIPCity.dat TO GeoLiteCity.dat.

Download the data. This should work on CentOS 7/7.1

wget -N http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz -O /usr/share/GeoIP/GeoLiteCity.dat.gz && gunzip --force /usr/share/GeoIP/GeoLiteCity.dat.gz

this maintenance a backward compatible version

ln -s /usr/share/GeoIP/GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.dat

like image 87
Dany Davila Avatar answered Sep 21 '22 05:09

Dany Davila