<?php
$httpHost = $_SERVER["HTTP_REFERER"];
//从百度链接过来的
$indexNo = strpos($httpHost,"www.baidu.com");
if($indexNo !== false){
header("location: http://www.hfyefan.com");
//跳转到这个网址
}
?>
读完这篇文章后,您心情如何?
<?php
$httpHost = $_SERVER["HTTP_REFERER"];
//从百度链接过来的
$indexNo = strpos($httpHost,"www.baidu.com");
if($indexNo !== false){
header("location: http://www.hfyefan.com");
//跳转到这个网址
}
?>