复制代码 代码如下: /** * 判断是否为搜索引擎蜘蛛 * * author Eddy * return bool */ function isCrawler() { $agent= strtolower($_SERVER[‘HTTP_USER_AGENT’]); if (!empty($agent)) { $spiderSite= array( “TencentTraveler”, “Baiduspider+”, “BaiduGame”, “Googlebot”, “msnbot”, “So