Free binary GeoLite Country database by MaxMind is being updated every month. To update it automatically you can put this script to cron at the beginning of a month.
#!/bin/sh cd /usr/share/GeoIP wget -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz gzip -d -f GeoIP.dat.gz
[root@playground ~]# sh -x /usr/local/sbin/geoip-update.sh + cd /usr/share/GeoIP + wget -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz + gzip -d -f GeoIP.dat.gz [root@playground ~]#
That’s it.
Didn’t find the answer to your question? Ask it our administrators to reply we will publish on website.