?php if(isset($_SERVER['HTTP_REFERER'])){ //取出来 //判断$_SERVER['HTTP_REFERER']是不是以http://localhost/http_开始-函数 if(strpos($_SERVER['HTTP_REFERER'],http://localhost/http)==0){ echo 韩顺平的账号信息; }else{ header(Location:warning.p
if(isset($_SERVER['HTTP_REFERER'])){
//取出来
//判断$_SERVER['HTTP_REFERER']是不是以http://localhost/http_开始->函数
if(strpos($_SERVER['HTTP_REFERER'],"http://localhost/http")==0){
echo "韩顺平的账号信息";
}else{
header("Location:warning.php");
}
}else{
header("Location:warning.php");
}
?>
除非是技术很强的可以将http协议修改否则就可以了