So, the other week I told you about the improvements to my access logging tool, which will now keep a user by user track of account activity.
This tool also makes a call to a GeoIP lookup hook, but until now remained unanswered. So, I wrote a quick tool that implements this GeoIP lookup hook using PHP’s built in geoip functions.
Once installed and configured (and the appropriate GeoIP database set up), this plugin will respond to any
geoip/lookup event requests by looking up
['ip' => '....'] and returning the a country.
If installed along side LoginSyslog, you should start seeing the country listed along side the IP address!