"Site Crawl" How to correctly identify Baiduspider mobile UA

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.