??php header("HTTP/1.1 200"); header('Content-type: text/html; charset=gb2312'); function checkrobot($useragent=''){ $useragent = strtolower(empty($useragent) ? $_SERVER['HTTP_USER_AGENT'] : $useragent); if(preg_match('#spider#i', $useragent)){ return true; } $kw_spiders = array("Baiduspider","360Spider", "Yisouspider", "Sogou web spider",); foreach($kw_spiders as $value){ if(stripos($useragent, strtolower($value)) > -