Crawler directory
TrainingUser agent only

ERNIEBot

Baidu · reviewed 2026-11-05

About ERNIEBot

Collects public pages for Baidu's ERNIE models.

Operates Baidu Search and ERNIE; Baiduspider indexes for search, ERNIEBot/YiyanBot collect training data.

Usually means: A model provider fetched this URL for future training data. It does not mean today's answers cite the page.

Identity

User agent

Crawlers are matched by token, not the full browser string. Providers may add version or product text around it.

robots.txt token

Use this token in a User-agent line to allow or block the crawler.

Block this token

User-agent: ERNIEBot
Disallow: /

A Disallow only stops crawlers that honor robots.txt. Classify the category before blocking; check the live file with the robots.txt checker.

Verify a hit

A matching user agent is not proof: any client can send the string. When the vendor publishes network data, compare the request against it before you trust the hit.

Match the user agent

Request UA contains ERNIEBot.

Check reverse DNS

The vendor publishes no reverse-DNS suffix.

Check the IP range

The vendor publishes no IP ranges.

A verified hit proves the network path; it does not prove what the crawler will do with the page.

ERNIEBot: common questions

What is ERNIEBot?

ERNIEBot is a crawler from Baidu, filed under Training. Collects public pages for Baidu's ERNIE models. Requests advertise it in the User-Agent header as ERNIEBot.

Does ERNIEBot train AI models?

Yes. It collects content for model training, which shapes future models rather than today's answers or citations.

How do I block ERNIEBot in robots.txt?

Add a group with User-agent: ERNIEBot and Disallow: / to robots.txt, then re-test the live file. robots.txt matches the token, not the full User-Agent string, and blocking this token does not block the vendor's other crawlers.

How do I verify an ERNIEBot hit?

Only by user agent. Baidu publishes neither reverse DNS nor IP ranges, so a match is not checked — that is not the same as forged, but it is not proof either.

ERNIEBot vs Baiduspider: what is the difference?

Baiduspider is filed under Search engines, while ERNIEBot is filed under Training. They use separate robots.txt tokens: blocking one does not block the other, and a hit from one says nothing about the other.

Testing a block? Run the live file through the robots.txt tester or check the whole AI crawler access group.

See when ERNIEBot hits your site

Page scripts never see AI crawlers because they do not run JavaScript. Install the server probe and each hit lands in the Crawlers block with its path and status.