Caution Reported AI & LLM Bots

ERNIE (Baidu)

Operated by Baidu

Quick Facts

User-Agent:
ERNIEBot
Category:
AI & LLM Bots
Operator:
Baidu
Safety:
Use Caution
Blocking Impact:
Low - No SEO ranking impact
SEO Impact Score:
2/10
Official docs:
None published by Baidu

Reported, not operator documented

Baidu has not published a crawler page that names ERNIEBot. It is listed here because a credible public source does: ai.robots.txt. Reported Baidu ERNIE token. Baidu documents only the Baiduspider family.

What that means for you: the robots.txt rule on this page is the best available spelling, and a well-behaved crawler using this string will honour it, but there is no vendor statement of purpose, crawl rate or robots.txt compliance to rely on. Treat a matching request in your logs as a detection clue, not proof of who sent it, and combine the rule with a firewall rule if the traffic matters to you. If the operator publishes documentation, this profile moves to Official docs.

What is ERNIE (Baidu)?

ERNIE (Baidu) is an AI data-collection crawler operated by Baidu. It gathers public web content to build or refine training datasets for large language models. Like other AI training crawlers, ERNIE (Baidu) does not influence your search-engine rankings, so you can block it via robots.txt without any SEO penalty if you wish to opt out of AI training.

ERNIE (Baidu) is an AI data-collection crawler operated by Baidu. It gathers public web content to build or refine training datasets for large language models. Like other AI training crawlers, ERNIE (Baidu) does not influence your search-engine rankings, so you can block it via robots.txt without any SEO penalty if you wish to opt out of AI training.
ERNIE (Baidu) uses the user-agent token ERNIEBot. You can control it via robots.txt, meta tags (noai), or the emerging llms.txt standard. Robots.txt is voluntary; for hard enforcement, combine it with server-level IP blocking.

What happens if you block ERNIE (Baidu)?

No SEO Impact - Blocking ERNIE (Baidu) does not affect your rankings in Google, Bing, or any other search engine. ERNIE (Baidu) is an AI crawler, not a traditional search indexer. You can freely block it via User-agent / Disallow: / without any SEO penalty.
Generally safe to allow; provides legitimate crawling value.

Want to see whether ERNIE (Baidu) actually visits you? Read how do I monitor AI bot traffic to my website?

How to block ERNIE (Baidu) with robots.txt

<code>User-agent: ERNIEBot</code> - Matching is case-insensitive. Robots.txt is fetched from the root of each subdomain separately.

Block completely (robots.txt)
User-agent: ERNIEBot Disallow: /
Allow all (robots.txt)
User-agent: ERNIEBot Allow: /
Block private only (robots.txt)
User-agent: ERNIEBot Disallow: /private/ Disallow: /api/ Disallow: /admin/ Allow: /
Nginx server block
# Nginx: Hard-block ERNIE (Baidu) if ($http_user_agent ~* "ERNIEBot") { return 403 "Bot blocked"; }
Apache .htaccess
# Apache: Hard-block ERNIE (Baidu) SetEnvIfNoCase User-Agent "ERNIEBot" bad_bot Order Allow,Deny Allow from all Deny from env=bad_bot
Meta robots tag
<meta name="robots" content="noindex, nofollow">
X-Robots-Tag header
X-Robots-Tag: noindex, nofollow

Is ERNIE (Baidu) safe to allow?

ERNIE (Baidu) is generally legitimate but warrants caution. It is operated by Baidu. Review its crawl behaviour in your logs and apply robots.txt or rate-limiting if its activity is heavier than you expect.
Verify by reverse-DNS lookup: legitimate ERNIE (Baidu) requests resolve to Baidu's domain.

What does ERNIE (Baidu) do?

Understanding ERNIE (Baidu)'s purpose helps you decide whether to allow or block it.

  • Collects public web content to train large language models
  • Builds and refreshes AI training datasets
  • Harvests text, code, and structured data for model improvement
  • Does NOT affect search-engine rankings
  • Can be blocked to opt out of AI training without SEO loss

Frequently Asked Questions

What is the official user-agent string for ERNIE (Baidu)?
The official user-agent string for ERNIE (Baidu) is: ERNIEBot. Use this exact string in robots.txt, Nginx, Apache, or Cloudflare firewall rules to target this bot. Matching in robots.txt is case-insensitive. Verify a request genuinely comes from ERNIE (Baidu) by performing a reverse-DNS lookup on the source IP.
Is ERNIE (Baidu) safe?
ERNIE (Baidu) is generally legitimate but warrants caution. It is operated by Baidu. Review its crawl behaviour in your logs and apply robots.txt or rate-limiting if its activity is heavier than you expect.
Will blocking ERNIE (Baidu) hurt my SEO?
No SEO Impact - Blocking ERNIE (Baidu) does not affect your rankings in Google, Bing, or any other search engine. ERNIE (Baidu) is an AI crawler, not a traditional search indexer. You can freely block it via User-agent / Disallow: / without any SEO penalty.
How do I block ERNIE (Baidu) in robots.txt?
Add the following lines to your /robots.txt file:
User-agent: ERNIEBot
Disallow: /

This instructs ERNIE (Baidu) not to crawl any path on your site. To block only specific sections, replace / with the path (e.g., Disallow: /blog/).
Does ERNIE (Baidu) respect robots.txt?
ERNIE (Baidu) is operated by Baidu and is expected to fetch and parse /robots.txt before crawling, following RFC 9309. For hard enforcement, combine robots.txt with server-level IP or user-agent blocking.
How do I verify if ERNIE (Baidu) is crawling my site?
Search your web server access logs for the string ERNIEBot (case-insensitive: grep -i "ERNIEBot" /var/log/nginx/access.log). Filter by user-agent in your log analytics tool (GoAccess, AWStats, etc.).