You can choose a Maxmind database below.




Test GeoIP Lookup manually

\$record = geoip_detect2_get_info_from_ip('" . esc_html($_POST['ip']) . "')"); ?>

$record->city->name city->name);?>
$record->mostSpecificSubdivision->isoCode mostSpecificSubdivision->name);?>
$record->mostSpecificSubdivision->name mostSpecificSubdivision->name);?>
$record->country->isoCode country->isoCode);?>
$record->country->name country->name);?>
$record->location->latitude location->latitude);?>
$record->location->longitude location->longitude);?>
$record->continent->code continent->code);?>
$record->location->timeZone location->timeZone);?>

http://dev.maxmind.com/geoip/geoip2/web-services/');?>



Options


> The server is behind a reverse proxy

Data source:

/>Automatic download & update of Maxmind GeoIP Lite City

(License: Creative Commons Attribution-ShareAlike 3.0 Unported. See Licensing FAQ for more details.)

Automatic download & update (only available in Github version)

/>Manual download & update of a Maxmind City or Country database
Filepath to mmdb-file:
Free version - Commercial Version

/>HostIp.info
(only English names, only country, country ID and city are populated)


This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com.