Bots by company
Baidu bots and crawlers
Baidu runs the largest search engine in China and the ERNIE language models.
Baidu bots at a glance
- Baidu runs 9 bots listed in this directory.
- They belong to: Search Engine Crawlers, Ads and Platform Fetchers, AI Training Crawlers, AI Assistant Fetchers.
- Each Baidu bot has its own robots.txt token, so each purpose can be allowed or blocked separately.
- Website: www.baidu.com
Every Baidu bot
| Bot | Group | Purpose | robots.txt | For GEO |
|---|---|---|---|---|
| Baiduspider | Search Engine Crawlers | Search indexOfficial docs | Yes | Allow |
| Baiduspider-ads | Ads and Platform Fetchers | AdsOfficial docs | Yes | Allow |
| Baiduspider-cpro | Ads and Platform Fetchers | AdsOfficial docs | Yes | Allow |
| Baiduspider-favo | Search Engine Crawlers | Search indexOfficial docs | Yes | Allow |
| Baiduspider-image | Search Engine Crawlers | Search indexOfficial docs | Yes | Allow |
| Baiduspider-news | Search Engine Crawlers | Search indexOfficial docs | Yes | Allow |
| Baiduspider-video | Search Engine Crawlers | Search indexOfficial docs | Yes | Allow |
| ERNIEBot | AI Training Crawlers | AI trainingReported | Not documented | Your choice |
| YiyanBot | AI Assistant Fetchers | AI assistantReported | Not documented | Your choice |
How to manage Baidu bot access by purpose
Review the role you need before making an operator-wide rule. A bot can appear in more than one row. Follow its profile for the exact token, evidence and policy exceptions.
| Purpose | Bots in this directory | What to check |
|---|---|---|
| AI training | ERNIEBot (reported) | Decide which public material you are willing to make available for training. Review search access separately, and do not assume that blocking reverses previous collection. |
| AI assistant | YiyanBot (reported) | If readers use the associated assistant, test whether it can retrieve a representative public URL on request. A successful fetch does not show that the page is indexed. |
| Search index | Baiduspider, Baiduspider-favo, Baiduspider-image, Baiduspider-news, Baiduspider-video | If this search engine sends useful traffic, check that canonical pages are reachable. Use the engine’s supported removal controls if the objective is to remove an indexed URL. |
| Ads | Baiduspider-ads, Baiduspider-cpro | If you use the associated ad platform, test its landing-page review before tightening access. Keep paid campaign checks separate from organic search policy. |
Block or allow all Baidu bots
The rules below name every Baidu token in this directory. For a narrower rule, select the exact tokens from the purpose table above and check each profile for scope and exceptions.
robots.txt: block
# Block all Baidu bots
User-agent: Baiduspider
User-agent: Baiduspider-ads
User-agent: Baiduspider-cpro
User-agent: Baiduspider-favo
User-agent: Baiduspider-image
User-agent: Baiduspider-news
User-agent: Baiduspider-video
User-agent: ERNIEBot
User-agent: YiyanBot
Disallow: /robots.txt: allow
# Allow all Baidu bots
User-agent: Baiduspider
User-agent: Baiduspider-ads
User-agent: Baiduspider-cpro
User-agent: Baiduspider-favo
User-agent: Baiduspider-image
User-agent: Baiduspider-news
User-agent: Baiduspider-video
User-agent: ERNIEBot
User-agent: YiyanBot
Allow: /robots.txt: partial
# Keep all Baidu bots out of private areas only
User-agent: Baiduspider
User-agent: Baiduspider-ads
User-agent: Baiduspider-cpro
User-agent: Baiduspider-favo
User-agent: Baiduspider-image
User-agent: Baiduspider-news
User-agent: Baiduspider-video
User-agent: ERNIEBot
User-agent: YiyanBot
Disallow: /wp-admin/
Disallow: /cart/
Disallow: /checkout/
Disallow: /my-account/
Allow: /Nginx
# Nginx: return 403 to all Baidu bots
if ($http_user_agent ~* "(Baiduspider|Baiduspider\-ads|Baiduspider\-cpro|Baiduspider\-favo|Baiduspider\-image|Baiduspider\-news|Baiduspider\-video|ERNIEBot|YiyanBot)") {
return 403;
}Apache
# Apache .htaccess: return 403 to all Baidu bots
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (Baiduspider|Baiduspider\-ads|Baiduspider\-cpro|Baiduspider\-favo|Baiduspider\-image|Baiduspider\-news|Baiduspider\-video|ERNIEBot|YiyanBot) [NC]
RewriteRule .* - [F,L]Cloudflare WAF
# Cloudflare > Security > WAF > Custom rule, action: Block
(http.user_agent contains "Baiduspider") or (http.user_agent contains "Baiduspider-ads") or (http.user_agent contains "Baiduspider-cpro") or (http.user_agent contains "Baiduspider-favo") or (http.user_agent contains "Baiduspider-image") or (http.user_agent contains "Baiduspider-news") or (http.user_agent contains "Baiduspider-video") or (http.user_agent contains "ERNIEBot") or (http.user_agent contains "YiyanBot")See which of these bots actually reach your website
The AI Log File Analyzer by Justin Hà counts visits from GPTBot, ClaudeBot, PerplexityBot and other AI crawlers in your server log, for free. The GEO Technical Package sets up robots.txt, llms.txt and crawler access for AI search.