Sign inGet started
Tracking

Baiduspider

View as MarkdownOpen in ChatGPTOpen in Claude
Connect your agent
Add to CursorAdd to VS Code

Baiduspider crawls the web for Baidu Search. Its PC and mobile user agents, the product tokens it answers to in robots.txt and how to verify it by reverse DNS.

Updated

Baiduspider is the crawler of Baidu, the Chinese search engine: it visits pages and builds the index that lets people find them in Baidu Search.

We checked Baidu's Baiduspider help and its article on identifying Baiduspider on November 30, 2026.

What does Baiduspider's user agent look like?

Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)
Mozilla/5.0 (compatible; Baiduspider-render/2.0; +http://www.baidu.com/search/spider.html)
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)

Baidu's rule of thumb: Baiduspider/2.0 alone is the PC crawler; with Android and Mobile, it's the mobile one.

Does Baiduspider follow robots.txt?

Yes, and meta robots too. Baiduspider covers all of Baidu's products; each also has its own token, such as Baiduspider-image, Baiduspider-video and Baiduspider-news. Two don't follow robots.txt: Baiduspider-cpro and Baiduspider-ads, which don't index pages. Baidu's robots.txt help describes only User-agent, Disallow and Allow, not Crawl-delay. A page blocked by robots.txt can take months to leave Baidu's index.

How do you know it's really Baidu?

Look up the address: the name must end in baidu.com or baidu.jp, for example baiduspider-123-125-66-120.crawl.baidu.com, and looking that name up again must return the same address. Baidu publishes no address list, since its ranges change.

Does it show up in your analytics?

Not as a visit. Most crawlers read your HTML and never run your analytics tag, so tag-based tools such as Google Analytics 4 don't see them at all. The ones that render pages in a browser can run the tag. nextanalytica recognizes them by their user agent when the hit reaches its edge, stores the hit apart under the bot's name and leaves it out of every report. Your agent still sees how many hits from bots arrived and weren't counted as visits. See Bot traffic.

This command adds nextanalytica to Claude Code:

claude mcp add --transport http nextanalytica https://mcp.nextanalytica.app/mcp

Next steps

Related
  • What the tag collects: Page views, clicks, forms, scroll, errors and page speed, counted without code. What never leaves the page.
  • Add the tag: Put one script line in the head of every page. Where it goes in plain HTML, site builders and each framework.
  • Next.js analytics: Add analytics to Next.js with @nextanalytica/tag: install, events, consent and AI crawlers, counted without cookies until a yes and read by your agent.
  • Next.js custom events: Send custom events from a Next.js app with @nextanalytica/tag: sign-ups, demo requests and conversions your agent reads by channel.
  • Next.js cookie consent: Wire a cookie banner in Next.js to analytics: count without cookies until the answer, and pass the saved answer on every page.
  • Next.js revenue tracking: Record orders in a Next.js app, from the browser or from your server, so revenue ties to the visit, channel and campaign it came from.
Still have questions?
Was this page useful?