OpenAI · AI search & citations
OAI-SearchBot robots.txt guide
OpenAI’s search crawler helps websites appear in ChatGPT Search. Its search purpose is separate from GPTBot’s training purpose.
Reviewed December 1, 2026 · Official documentation
OAI-SearchBot robots.txt rules
Add the chosen group to your site’s robots.txt. Review existing rules for this token first: repeated matching groups combine.
Block all paths
User-agent: OAI-SearchBot Disallow: /
Allow all paths
User-agent: OAI-SearchBot Allow: /
Restrict selected paths
User-agent: OAI-SearchBot Allow: / Disallow: /private/ Disallow: /api/
Test OAI-SearchBot access
Blocked/
Line 2 · Disallow: /
Specific User-agent: OAI-SearchBot
Site-wide policy: Blocked
What changes if you block OAI-SearchBot?
Google & Bing Search
This token does not control Googlebot or Bingbot. Blocking it is not a Google or Bing crawl restriction; keep your search crawler rules separate.
AI visibility & content use
OpenAI says opted-out sites will not be shown in ChatGPT search answers, but may still appear as navigational links. Allowing the bot makes crawling possible; it does not guarantee citations.
Identify genuine requests
- robots.txt token
- OAI-SearchBot
Compare the source IP address with the operator’s published IP ranges. A User-Agent header alone can be spoofed; do not trust an invented reverse-DNS pattern.
Verification referenceUser-Agent versions change. Use the operator’s current examples rather than treating a sample header as proof of identity.
Which robots.txt rule takes priority?
In this inspector, matching groups for OAI-SearchBot are combined. If a specific group exists, the wildcard group (User-agent: *) is not added. Without a specific group, the wildcard applies. With neither, access defaults to allowed.
For each path, the longest matching directive wins; Allow wins a tie. An empty Disallow does not block anything. A policy result describes the written rules, not proof that a crawler follows them.
Read RFC 9309Common questions about OAI-SearchBot
Can I allow OAI-SearchBot but block GPTBot?
Yes. OpenAI documents these settings as independent. Use a separate group for each token and check firewall access too.
Will allowing OAI-SearchBot guarantee ChatGPT citations?
No. Crawl access is only one requirement. Search relevance, availability, and other selection factors still determine which sources appear.
Does blocking OAI-SearchBot protect private pages?
No. robots.txt is public and voluntary. Use authentication, authorization, and appropriate server controls for private content; do not publish secret paths as a security measure.