### 微软 “msnbot-media/1.1 (+http://search.msn.com/msnbot.htm)” msnbot,大多数已经被bingbot替代了,现在偶尔还可以看到。 “Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)” bing,必应 ### 搜搜 “Sosospider+(+http://help.soso.com/webspider.htm)” 腾讯搜搜 “Sosoimagespider+(+http://help.soso.com/soso-image-spider.htm)” 搜搜图片 ### 雅虎 “Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)” 雅虎英文 “Yahoo! Slurp China” “Mozilla/5.0 (compatible; Yahoo! Slurp China; http://misc.yahoo.com.cn/help.html)” 雅虎中国 ### 搜狗 “http://pic.sogou.com” “Sogou Pic Spider/3.0(+http://www.sogou.com/docs/help/webmasters.htm#07)” 搜狗图片 “Sogou web spider/4.0(+http://www.sogou.com/docs/help/webmasters.htm#07)” 搜狗,搜狗的蜘蛛程序做的很不好,总是进入死循环,已经分别在 [robots.txt](http://www.wilf.cn/post/robots.html "robots.txt 和 robots meta 标签应用详解") 和 设置中屏蔽掉 ### Google “Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)” Google “Googlebot-Image/1.0” Google图片搜索 “Mediapartners-Google” 未知 “FeedBurner/1.0 (http://www.FeedBurner.com)” feedburner “AdsBot-Google-Mobile (+http://www.google.com/mobile/adsbot.html) Mozilla (iPhone; U; CPU iPhone OS 3 0 like Mac OS X) AppleWebKit (KHTML, like Gecko) Mobile Safari” Adwords移动网络 ### 百度 “Baiduspider-image+(+http://www.baidu.com/search/spider.htm)” 百度图片 “Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)” 亲爱的百度蜘蛛 “Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.8;baidu Transcoder) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729)” baidu+Transcoder 是用户用手机浏览网站留下的记录,Transcoder 是代码转换器,把网站转码成手机用户上网看到的网页留下的记录 ### 360 Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0); 360Spider 360搜索 ### 其他搜索引擎 “Mozilla/5.0 (compatible; YoudaoBot/1.0; http://www.youdao.com/help/webmaster/spider/; )” 网易有道 “Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) Speedy Spider (http://www.entireweb.com/about/search\_tech/speedy\_spider/)” 来自瑞典的搜索引擎,网站看起来很不错,http://www.entireweb.com ~“jikespider \\”Mozilla/5.0”~ 即刻搜索,原人民搜索,搜索引擎国家队,已倒闭 “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)” 俄罗斯yandex Mozilla/5.0 (compatible; EasouSpider; +http://www.easou.com/search/spider.html) 宜搜,不认识,一直不停抓取,已屏蔽 ### 其他已知bot “HuaweiSymantecSpider/1.0+DSE-support@huaweisymantec.com+(compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR ; http://www.huaweisymantec.com/cn/IRL/spider)” 华为赛门铁克蜘蛛,是华为赛门铁克科技有限公司网页信誉分析系统的一个页面爬取程序,其作用是用于爬取互联网网页并进行信誉分析,从而检查该网站上的是否含有恶意代码。 [http://baike.baidu.com/view/5994606.htm](http://baike.baidu.com/view/5994606.htm) qiniu-imgstg-spider-1.0 七牛镜像蜘蛛 “xFruits/1.0 (http://www.xfruits.com)” xFruits,聚合rss用的 Feedly/1.0 (+http://www.feedly.com/fetcher.html; like FeedFetcher-Google) Feedly,Google Reader 关闭后一直用这个 Mozilla/5.0 (compatible;YoudaoFeedFetcher/1.0;http://www.youdao.com/help/reader/faq/topic006/;1 subscribers;) 有道阅读 FeedDemon/4.5 (http://www.feeddemon.com/; Microsoft Windows) 一款离线RSS阅读器 “Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; JianKongBao Monitor 1.1)” 监控宝 DNSPod-Monitor/2.0 DNSPod监控 “Mozilla 5.0 (compatible; Feedsky crawler /1.0; http://www.feedsky.com)” Feedsky “Xianguo.com 1 Subscribers” 鲜果 360spider(http://webscan.360.cn) 360网站安全检测 “yrspider Mozilla/5.0 (compatible; YRSpider; +http://www.yunrang.com/yrspider.html)” 云壤公司,http://www.yunrang.com/yrspider.html ### 其他未知bot “Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; EmbeddedWB 14.52 from: http://www.bsalsa.com/ EmbeddedWB 14.52; .NET CLR 2.0.50727)” 怀疑为发布SPAM用的,因为总是在获取注册页面和验证码 Mozilla/5.0 (compatible; LinkpadBot/1.06; +http://www.linkpad.ru) LinkpadBot,看域名知道是来自俄罗斯的 Mozilla/5.0 (compatible; SISTRIX Crawler; http://crawler.sistrix.net/) 又一个国外的 “Mozilla/5.0 (compatible; MJ12bot/v1.4.0; http://www.majestic12.co.uk/bot.php?+)” 来自英国的未知bot “Mozilla/5.0 (compatible; Ezooms/1.0; ezooms.bot@gmail.com)” 未知 “IS Alpha/Nutch-1.1” 未知 Nutch Spider/Nutch-2.2.1 貌似是上面那个进化来的 “BlogPulseLive (support@blogpulse.com)” “findlinks/2.0.2 (+http://wortschatz.uni-leipzig.de/findlinks/)” 来自德国的未知bot “Mozilla/4.0 (compatible; MSIE 6.0; AugustBot/augstbot@163.com)” 未知,貌似与网易有关 “InternetSeer.com” 未知 “Mozilla/5.0 (compatible; DotBot/1.1; http://www.dotnetdotcom.org/, crawler@dotnetdotcom.org)” 未知,已更新为下面的 Mozilla/5.0 (compatible; DotBot/1.1; http://www.opensiteexplorer.org/dotbot, help@moz.com) DotBot,不认识 “http://www.internet-zarabotok.net/” “Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; Win64; AMD64)” 来自俄罗斯的未知bot Mozilla/5.0 (X11; U; Linux x86\_64; en-US; rv:1.9.0.19; aggregator:Spinn3r (Spinn3r 3.1); http://spinn3r.com/robot) Gecko/2010040121 Firefox/3.0.19 Spinn3r,不认识 Mozilla/5.0 (compatible; Exabot/3.0; +http://www.exabot.com/go/robot) Exabot,还是不认识 Mozilla/5.0 (compatible; Exabot/3.0 (BiggerBetter); +http://www.exabot.com/go/robot) Exabot,不认识 psbot/0.1 (+http://www.picsearch.com/bot.html) psbot,不认识 TurnitinBot/3.0 (http://www.turnitin.com/robot/crawlerinfo.html) TurnitinBot,不认识### 微软 “msnbot-media/1.1 (+http://search.msn.com/msnbot.htm)” msnbot,大多数已经被bingbot替代了,现在偶尔还可以看到。 “Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)” bing,必应 ### 搜搜 “Sosospider+(+http://help.soso.com/webspider.htm)” 腾讯搜搜 “Sosoimagespider+(+http://help.soso.com/soso-image-spider.htm)” 搜搜图片 ### 雅虎 “Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)” 雅虎英文 “Yahoo! Slurp China” “Mozilla/5.0 (compatible; Yahoo! Slurp China; http://misc.yahoo.com.cn/help.html)” 雅虎中国 ### 搜狗 “http://pic.sogou.com” “Sogou Pic Spider/3.0(+http://www.sogou.com/docs/help/webmasters.htm#07)” 搜狗图片 “Sogou web spider/4.0(+http://www.sogou.com/docs/help/webmasters.htm#07)” 搜狗,搜狗的蜘蛛程序做的很不好,总是进入死循环,已经分别在 [robots.txt](http://www.wilf.cn/post/robots.html "robots.txt 和 robots meta 标签应用详解") 和 设置中屏蔽掉 ### Google “Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)” Google “Googlebot-Image/1.0” Google图片搜索 “Mediapartners-Google” 未知 “FeedBurner/1.0 (http://www.FeedBurner.com)” feedburner “AdsBot-Google-Mobile (+http://www.google.com/mobile/adsbot.html) Mozilla (iPhone; U; CPU iPhone OS 3 0 like Mac OS X) AppleWebKit (KHTML, like Gecko) Mobile Safari” Adwords移动网络 ### 百度 “Baiduspider-image+(+http://www.baidu.com/search/spider.htm)” 百度图片 “Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)” 亲爱的百度蜘蛛 “Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.8;baidu Transcoder) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729)” baidu+Transcoder 是用户用手机浏览网站留下的记录,Transcoder 是代码转换器,把网站转码成手机用户上网看到的网页留下的记录 ### 360 Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0); 360Spider 360搜索 ### 其他搜索引擎 “Mozilla/5.0 (compatible; YoudaoBot/1.0; http://www.youdao.com/help/webmaster/spider/; )” 网易有道 “Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) Speedy Spider (http://www.entireweb.com/about/search\_tech/speedy\_spider/)” 来自瑞典的搜索引擎,网站看起来很不错,http://www.entireweb.com ~“jikespider \\”Mozilla/5.0”~ 即刻搜索,原人民搜索,搜索引擎国家队,已倒闭 “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)” 俄罗斯yandex Mozilla/5.0 (compatible; EasouSpider; +http://www.easou.com/search/spider.html) 宜搜,不认识,一直不停抓取,已屏蔽 ### 其他已知bot “HuaweiSymantecSpider/1.0+DSE-support@huaweisymantec.com+(compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR ; http://www.huaweisymantec.com/cn/IRL/spider)” 华为赛门铁克蜘蛛,是华为赛门铁克科技有限公司网页信誉分析系统的一个页面爬取程序,其作用是用于爬取互联网网页并进行信誉分析,从而检查该网站上的是否含有恶意代码。 [http://baike.baidu.com/view/5994606.htm](http://baike.baidu.com/view/5994606.htm) qiniu-imgstg-spider-1.0 七牛镜像蜘蛛 “xFruits/1.0 (http://www.xfruits.com)” xFruits,聚合rss用的 Feedly/1.0 (+http://www.feedly.com/fetcher.html; like FeedFetcher-Google) Feedly,Google Reader 关闭后一直用这个 Mozilla/5.0 (compatible;YoudaoFeedFetcher/1.0;http://www.youdao.com/help/reader/faq/topic006/;1 subscribers;) 有道阅读 FeedDemon/4.5 (http://www.feeddemon.com/; Microsoft Windows) 一款离线RSS阅读器 “Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; JianKongBao Monitor 1.1)” 监控宝 DNSPod-Monitor/2.0 DNSPod监控 “Mozilla 5.0 (compatible; Feedsky crawler /1.0; http://www.feedsky.com)” Feedsky “Xianguo.com 1 Subscribers” 鲜果 360spider(http://webscan.360.cn) 360网站安全检测 “yrspider Mozilla/5.0 (compatible; YRSpider; +http://www.yunrang.com/yrspider.html)” 云壤公司,http://www.yunrang.com/yrspider.html ### 其他未知bot “Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; EmbeddedWB 14.52 from: http://www.bsalsa.com/ EmbeddedWB 14.52; .NET CLR 2.0.50727)” 怀疑为发布SPAM用的,因为总是在获取注册页面和验证码 Mozilla/5.0 (compatible; LinkpadBot/1.06; +http://www.linkpad.ru) LinkpadBot,看域名知道是来自俄罗斯的 Mozilla/5.0 (compatible; SISTRIX Crawler; http://crawler.sistrix.net/) 又一个国外的 “Mozilla/5.0 (compatible; MJ12bot/v1.4.0; http://www.majestic12.co.uk/bot.php?+)” 来自英国的未知bot “Mozilla/5.0 (compatible; Ezooms/1.0; ezooms.bot@gmail.com)” 未知 “IS Alpha/Nutch-1.1” 未知 Nutch Spider/Nutch-2.2.1 貌似是上面那个进化来的 “BlogPulseLive (support@blogpulse.com)” “findlinks/2.0.2 (+http://wortschatz.uni-leipzig.de/findlinks/)” 来自德国的未知bot “Mozilla/4.0 (compatible; MSIE 6.0; AugustBot/augstbot@163.com)” 未知,貌似与网易有关 “InternetSeer.com” 未知 “Mozilla/5.0 (compatible; DotBot/1.1; http://www.dotnetdotcom.org/, crawler@dotnetdotcom.org)” 未知,已更新为下面的 Mozilla/5.0 (compatible; DotBot/1.1; http://www.opensiteexplorer.org/dotbot, help@moz.com) DotBot,不认识 “http://www.internet-zarabotok.net/” “Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; Win64; AMD64)” 来自俄罗斯的未知bot Mozilla/5.0 (X11; U; Linux x86\_64; en-US; rv:1.9.0.19; aggregator:Spinn3r (Spinn3r 3.1); http://spinn3r.com/robot) Gecko/2010040121 Firefox/3.0.19 Spinn3r,不认识 Mozilla/5.0 (compatible; Exabot/3.0; +http://www.exabot.com/go/robot) Exabot,还是不认识 Mozilla/5.0 (compatible; Exabot/3.0 (BiggerBetter); +http://www.exabot.com/go/robot) Exabot,不认识 psbot/0.1 (+http://www.picsearch.com/bot.html) psbot,不认识 TurnitinBot/3.0 (http://www.turnitin.com/robot/crawlerinfo.html) TurnitinBot,不认识 ```   static String[] spiders = { "Sogou", "Googlebot", "MJ12bot", "YodaoBot", "Yahoo!", "Sosospider",       "Baiduspider", "msnbot-media", "Sosoimagespider", "Feedfetcher-Google",       "Mediapartners-Google", "Googlebot-Image", "ia_archiver", "sohu-search",       "Oracle Ultra Search", "ASPSeek", "YahooSeeker", "Baidu-Transcoder/", "Sosoimagespider" }; ``` ``` <?php $botlist=array ( 1 => array ( 'name' => '百度', 'biaoji' => 'baiduspider', ), 2 => array ( 'name' => '谷歌', 'biaoji' => 'googlebot', ), 3 => array ( 'name' => '搜狗', 'biaoji' => 'sogou spider', ), 4 => array ( 'name' => '雅虎', 'biaoji' => 'slurp', ), 5 => array ( 'name' => 'MSN', 'biaoji' => 'msnbot', ), 6 => array ( 'name' => '搜狐', 'biaoji' => 'sohu-search', ), 7 => array ( 'name' => '有道', 'biaoji' => 'youdaobot', ), 8 => array ( 'name' => 'SOSO', 'biaoji' => 'sosospider', ), 9 => array ( 'name' => 'Alexa', 'biaoji' => 'alexa', ), ); $useragent=strtolower($_SERVER['HTTP_USER_AGENT']); foreach($botlist as $k=>$v){ if(stripos($useragent,$botlist[$k]['biaoji'])!==false){ SpiderRecord($botlist[$k]['name']); } } function SpiderRecord($spider=''){ $ip=getonlineip(); $logFormat = "%date $spider %ip %url"; date_default_timezone_set("PRC"); $Spiders = str_replace(explode(' ', $logFormat), array( "time:".date('Y-m-d H:i:s'), "|| spider:".$spider, "|| ip:".$ip, "|| url:".$_SERVER['HTTP_HOST'].$_SERVER["PHP_SELF"] . "?" . $_SERVER["QUERY_STRING"], ), $logFormat); $fileName=$spider.date('Ym').'.log'; return file_put_contents(__dir__.DIRECTORY_SEPARATOR.$fileName, $Spiders . "\r\n", FILE_APPEND); } function getonlineip(){ if(isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], 'unknown')){ $ip = $_SERVER['REMOTE_ADDR']; }elseif(getenv('HTTP_CLIENT_IP') && strcasecmp(getenv('HTTP_CLIENT_IP'), 'unknown')){ $ip = getenv('HTTP_CLIENT_IP'); }elseif(getenv('HTTP_X_FORWARDED_FOR') && strcasecmp(getenv('HTTP_X_FORWARDED_FOR'), 'unknown')){ $ip = getenv('HTTP_X_FORWARDED_FOR'); }elseif(getenv('REMOTE_ADDR') && strcasecmp(getenv('REMOTE_ADDR'), 'unknown')){ $ip = getenv('REMOTE_ADDR'); } preg_match("/[\d\.]{7,15}/", isset($ip) ? $ip : NULL, $match); return isset($match[0]) ? $match[0] : 'unknown'; } ```