$referans = parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST);
if ($referans == 'xxx.com') {
echo 'True';
} else {
echo 'False';
}
?>