<?php
// require the class
require_once('class.cfgeo.php');
// initialize the class
$cf = new cfGeo;
// get user's IP
echo 'IP: '.$cf->getClientIp().'<br>';
// get user's county code in ISO format
echo 'Country Code: '.$cf->getCountryCode().'<br>';
// get user's country name
echo 'Country Name: '.$cf->getCountryName().'<br>';
/* Your site need to be intergrated to cloudflare */
?>
|