In Server:
$domain = $_GET['domain']; //Get domain
$Array = array('127.0.0.1','localhost','www.ikxin.com','www.keepmins.com'); //Authorized domain list
echo in_array($domain, $Array) ? 'true' : 'false'; //return the resule
In Client:
$shouname = trim($_SERVER['SERVER_NAME']); //get domain
$shouurl = file_get_contents('http://119.27.180.212/auth.php?domain='.$shouname); //get authorized domain form server
if($shouurl=='true'){
echo "authorized"; //Authorized
}else{
die("unauthorized"); //Unauthorized
}