GeoIP Location

GeoIP Location

HLStats is since version 1.60 able to lookup the country by IP.

NOTE: This feature does only work with MODE = Normal 

Instructions to enable this feature are:

1. Download and unpack the latest GeoIP database

 

GNU/Linux
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
gunzip GeoIP.dat.gz

 

Windows
1
2
3
Download from 
http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
and unzip with WinZIP or WinRAR

 

2. Move the GeoIP.dat file your hlstats installation

/path/to/hlstats/daemon/geoip/GeoIP.dat

3. Enable the USEGEOIP option via the Admin -> HLStats options interface

4. Restart hlstats.pl daemon

 

The used GeoIP database file is updated every month. If you want to keep it up to date ( which is not really needed every month. Every couple of month should be enough ) create a cronjob which downloads the database file and moves it to the right location.