Use GEOIP2 for PHP Geo IP data in WordPress, Magento, HTML

created April 8, 2014, last updated May 27, 2015.

closeThis post was last updated 8 years 8 months 14 days ago, some of the information contained here may no longer be actual and any referenced software versions may have been updated!


The above iFrame makes an ajax request to a PHP class querying GeoLite2 data created by MaxMind, available from

This example displays the location of a single visitor i.e. YOU.

Click here to see the logging data for this WordPress blog which demonstrates a PHP memcache data logging solution with geo ip visitor data displayed dynamically on a google map.


This site uses Akismet to reduce spam. Learn how your comment data is processed.