|
发表于 2008-7-27 10:49:54
|
显示全部楼层
不知道有用不.
PHP复制代码
//ckeck referer
function checkReffer () {
$refererhost = parse_url($_SERVER['HTTP_REFERER']);
if($_SERVER['HTTP_REFERER'] && !($refererhost['host'] == $_SERVER['HTTP_HOST'])) {
return FALSE;
}else{
return TRUE;
}
}
复制代码 |
|