This is full code for PHP

PHP Code:
<?php
// Author: www.easyjquery.com
$ip $_SERVER['REMOTE_ADDR'];
// remember chmod 0777 for folder 'cache'
$file "./cache/".$ip;
if(!
file_exists($file)) {
    
// request
    
$json file_get_contents("http://api.easyjquery.com/ips/?ip=".$ip."&full=true");
    
$f fopen($file,"w+");
    
fwrite($f,$json);
    
fclose($f);
} else {
    
$json file_get_contents($file);
}

$json json_decode($json,true);
echo 
"<pre>";
print_r($json);

?>
You can check demo here: [Link To Demo]

You can use this script to detect spammer, or verify order in shopping cart online, detect IP & Proxy ...