Baidu Webmaster Platform release announcement announced the new Baiduspider Mobile UA on-line, while the release of the PC version of Baiduspider UA, then how to correctly identify the mobile UA it? We Baidu Webmaster Platform Technical Experts Sun Quan Teacher gave the answer:
New Mobile UA:
mozilla/5.0 (linux;u; Android 4.2.2;ZH-CN;) applewebkit/534.46 (khtml,like Gecko) version/5.1 Mobile safari/10600.6.3 (compatible; baiduspider/2.0; +http://www.baidu.com/search/spider.html)
PC UA:
mozilla/5.0 (compatible; baiduspider/2.0; +http://www.baidu.com/search/spider.html)
Previously identified through the "+http://www.baidu.com/search/spider.html" website Shanghai STD Hospital PLEASE note! You need to modify the recognition method, the new correct identification Baiduspider Mobile UA is as follows:
1. The keyword "Android" or "mobile" to identify, to determine the mobile access or crawl.
2. Through the keyword "baiduspider/2.0", Judge for Baidu Crawler.
It is also emphasized that for robots blocking, if the banned agent is Baiduspider, it will take effect on both the PC and the mobile. The Shanghai Human Papillomavirus hospital, whether it is a PC or mobile baiduspider, will not be blocked objects to crawl. The reason to emphasize this is to find some code to adapt to the site (the same url,pc UA when the PC page is opened, Mobile UA when the mobile page is opened), want to set up robots agent block to achieve only the purpose of mobile Baiduspider crawl, But because the PC and mobile Baiduspider agent are Baiduspider, this method is very undesirable.
"Site Crawl" How to correctly identify Baiduspider mobile UA