http://www.kuitao8.com/20140515/2443.shtml
function check_referer()
{
$online = true;
if ($online) {
$referer = $_SERVER['HTTP_REFERER'];
if (strpos($referer, "baidu.com") != false or strpos($referer, "baidubeta.com") != false) {
return true;
} else {
echo false;
}
} else {
return true;
}
}
可以,加个参数记录跳转的url地址就行