Search Engine Crawlers

Baiduspider user agent

Key Takeaways

  • Baiduspider is Baidu's crawler that indexes pages for Baidu Search, the largest search engine in China.
  • Baiduspider uses the operator-documented robots.txt token Baiduspider.
  • Baiduspider has operator-documented robots.txt support; review the scope and exceptions before relying on a rule.

Operated by Baidu

Search indexOfficial docs Allow

Baiduspider is Baidu's crawler that indexes pages for Baidu Search, the largest search engine in China.

What identifies Baiduspider?

IdentifierBaiduspider
Identity typeOperator-documented crawler or fetcher
Evidence for this identityOperator documentation linked below
robots.txt policyYes

What is Baiduspider?

Baiduspider crawls pages for Baidu Search. Sites targeting Chinese-speaking users need it to be indexed in China.

Baidu supports reverse DNS verification: genuine crawler hostnames end in baidu.com or baidu.jp.

Baiduspider is Baidu's crawler that indexes pages for Baidu Search, the largest search engine in China. Source.

For Baiduspider, distinguish a crawl preference in robots.txt from server enforcement and removal of an already indexed page.

Should you block Baiduspider?

Consider allowing Baiduspider when you use the associated service; verify identity, access requirements and server load first.

Effect on search rankingsA crawl block prevents future fetching when the engine honors it; it does not guarantee immediate removal of indexed URLs.
Effect on AI visibilitySearch-backed AI features depend on their own eligibility and controls. For Google, Search Console generative AI settings and Google-Extended have separate scopes.
Follows robots.txtYes
RecommendationAllow

How to decide whether to allow Baiduspider

Start with the operator documentation linked in this profile. Check the source.

  • Search index: 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.
  • Access policy: Check the paths and hosts covered by the published or reported policy. A robots.txt rule is not an access control.
  • What to check in logs: Look for Baiduspider, then compare the paths, response codes and request volume before and after your change. Match the log entry against the operator’s verification method below before granting exceptions.

How do you block or allow Baiduspider?

Put the robots.txt rule in the file at the root of every domain and subdomain, for example https://example.com/robots.txt. The token Baiduspider is matched case-insensitively.

robots.txt: block

# Block Baiduspider
User-agent: Baiduspider
Disallow: /

robots.txt: allow

# Allow Baiduspider
User-agent: Baiduspider
Allow: /

robots.txt: partial

# Keep Baiduspider out of private areas only
User-agent: Baiduspider
Disallow: /wp-admin/
Disallow: /cart/
Disallow: /checkout/
Disallow: /my-account/
Allow: /

Nginx

# Nginx: return 403 to Baiduspider
if ($http_user_agent ~* "(Baiduspider)") {
    return 403;
}

Apache

# Apache .htaccess: return 403 to Baiduspider
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (Baiduspider) [NC]
RewriteRule .* - [F,L]

Cloudflare WAF

# Cloudflare > Security > WAF > Custom rule, action: Block
(http.user_agent contains "Baiduspider")

How can you verify Baiduspider traffic?

Reverse DNS check: look up the request IP, confirm the hostname ends in baidu.com, baidu.jp, then look up that hostname and confirm it returns the same IP.

# 1. Reverse lookup: the hostname must end in baidu.com, baidu.jp
host REQUEST_IP
# 2. Forward lookup: must return the same REQUEST_IP
host HOSTNAME_FROM_STEP_1

How do you find Baiduspider in server logs?

Search the web server access log for the literal identifier. The command below counts candidate Baiduspider requests per URL on Nginx or Apache.

grep -iF -- 'Baiduspider' access.log | awk '{print $7}' | sort | uniq -c | sort -rn | head -20

For a full report per AI bot, upload the log to the AI Log File Analyzer, a free tool by Justin Hà.

Baiduspider FAQ

Baiduspider uses the robots.txt token "Baiduspider". No full user-agent sample is recorded in this profile. Treat a token match as a candidate identity, not authentication.

Baidu states that Baiduspider follows robots.txt rules. Check the documented scope and any exceptions on this profile.

A crawl block prevents future fetching when the engine honors it; it does not guarantee immediate removal of indexed URLs. Search-backed AI features depend on their own eligibility and controls. For Google, Search Console generative AI settings and Google-Extended have separate scopes.

Add two lines to the robots.txt file at the root of each domain and subdomain: "User-agent: Baiduspider" followed by "Disallow: /". The token is case-insensitive. Operator fetch schedules and caching policy determine when a change is applied; check subsequent requests.

Yes. Run a reverse DNS lookup on the request IP; a real Baiduspider request resolves to baidu.com, baidu.jp, and a forward lookup of that hostname returns the same IP.

Search your server access log for "Baiduspider", for example with: grep -i "Baiduspider" access.log. The AI Log File Analyzer by Justin Hà counts visits per AI bot from an uploaded log file.

Sources: Baidu crawler documentation. Content updated by Justin Hà.

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.

Zalo logo Chat Zalo WhatsApp logo Chat WhatsApp