Check 31.04 · AI crawler access and data policy

Allow OAI-SearchBot if you want ChatGPT visibility

Allow OAI-SearchBot in robots.txt and at the firewall, check its HTTP response with curl and its official IPs to stay eligible for ChatGPT Search.

Priority
Critical
Difficulty
Easy
Estimated time
20 to 40 min
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

OAI-SearchBot is the OpenAI crawler that feeds ChatGPT search. If you want your pages to be cited and linked in ChatGPT Search answers, this crawler must be allowed in robots.txt and receive a 200 response from your server, your CDN (Content Delivery Network) and your firewall. This check is conditional: only do it if this visibility is part of your policy.

Why it matters

OpenAI operates several crawlers with separate roles, and each setting is independent of the others:

Crawler Role Effect of a refusal
OAI-SearchBot indexing for ChatGPT Search the site is no longer shown in ChatGPT search answers
GPTBot collection that may be used to train models the content should not be used for training
ChatGPT-User visiting a page at a user's request ChatGPT cannot read the page when someone asks it to

Two practical consequences. GPTBot is not required to appear in ChatGPT Search: you can refuse training and remain visible. And ChatGPT-User is not used to decide whether content may appear in search: OpenAI asks you to use OAI-SearchBot to manage that.

OpenAI's documentation states that a site that refuses OAI-SearchBot is not shown in ChatGPT Search answers, though it may still appear as a plain navigational link. It recommends allowing the crawler in robots.txt and accepting requests from its published IP ranges. This second half is often forgotten: an open robots.txt is useless if the firewall responds with a 403.

What it improves

  • Crawling by ChatGPT Search The crawler can read and index your public pages.
  • Citations in ChatGPT Your pages become eligible for sourced answers. This is a necessary condition, not a guarantee: no practice guarantees a citation or a recommendation.
  • Referral traffic Indirect. Links shown in answers can bring visits, measurable in your analytics tools.
  • What it does not change Model training (controlled by GPTBot), on-demand access (ChatGPT-User), your ranking in Google or Bing.

How to check

1. Does robots.txt allow the crawler?

curl -s https://example.com/robots.txt | grep -i -A 5 "OAI-SearchBot"

No result means there is no dedicated group: the crawler then follows the User-agent: * group. This is compliant as long as that group does not contain Disallow: /.

2. Does the server respond with a 200 to the crawler's user agent?

curl -s -o /dev/null -w "%{http_code}\n" \
  -A "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; OAI-SearchBot/1.4; +https://openai.com/searchbot)" \
  https://example.com/

Compare with the same command without the -A option. A 200 in both cases is the expected result. A 403, 429 or 503 reserved for the crawler's user agent reveals a rule targeting it by name. The version number in the string changes: copy the current string from OpenAI's documentation.

3. Does the real crawler get through? Your test comes from your IP address, not from OpenAI's. Only the logs show what the real crawler receives:

grep "OAI-SearchBot" /var/log/nginx/access.log | awk '{print $1, $9}' | sort | uniq -c | sort -rn | head -20

The addresses in the first column must belong to the ranges published by OpenAI:

curl -s https://openai.com/searchbot.json | jq -r '.prefixes[] | .ipv4Prefix // .ipv6Prefix'

Good to know: some firewalls deliberately block a crawler user agent presented from an IP that is not the crawler's. A 403 on your curl test is therefore not proof that the real crawler is blocked, and a 200 does not prove the opposite if the firewall filters by IP address. The logs settle it.

How to implement

Before you start

The robots.txt rule. If your general group allows crawling, OAI-SearchBot is already allowed and no dedicated group is needed. Add one when the * group is restrictive or when you want to make the decision explicit:

User-agent: OAI-SearchBot
Disallow: /admin/
Disallow: /compte/
Disallow: /panier/

A named crawler no longer reads the * group: copy into its group the restrictions that must apply to it. A group without Disallow: / allows everything else. Where the file lives on each platform is detailed in configure robots.txt to match these goals (opens in a new tab).

The delay. OpenAI states that it takes about 24 hours after a robots.txt change for its search systems to adjust.

IP addresses. The official list is published at https://openai.com/searchbot.json, as a prefixes object in which each entry holds a range in CIDR format. It changes: do not copy it by hand into a rule without planning updates. The lists for GPTBot and ChatGPT-User are separate (gptbot.json, chatgpt-user.json).

Apache

Versions Apache 2.4.

Look for a rule that refuses the crawler by name, in .htaccess and in the virtual host configuration:

grep -r -n -i -E "oai-searchbot|gptbot|chatgpt|openai" /var/www/example/public/.htaccess /etc/apache2/

“Bad bot” lists pasted into a .htaccess often contain a line like this:

RewriteCond %{HTTP_USER_AGENT} (GPTBot|OAI-SearchBot|ChatGPT-User|ClaudeBot) [NC]
RewriteRule .* - [F,L]

Remove OAI-SearchBot from the alternation to keep only the crawlers you actually refuse:

RewriteCond %{HTTP_USER_AGENT} (GPTBot|ClaudeBot) [NC]
RewriteRule .* - [F,L]

A .htaccess change takes effect immediately; for the server configuration, sudo apachectl configtest && sudo systemctl reload apache2.

Nginx

Versions Nginx 1.18 and later.

Look for user agent blocks:

grep -r -n -i -E "oai-searchbot|gptbot|chatgpt|openai" /etc/nginx/

To keep a rate limit from applying to the verified crawler, generate the list of its ranges and exempt them:

curl -s https://openai.com/searchbot.json \
  | jq -r '.prefixes[] | (.ipv4Prefix // .ipv6Prefix) + " 1;"' \
  | sudo tee /etc/nginx/snippets/oai-searchbot-ips.conf
# http context
geo $oai_searchbot_ip {
    default 0;
    include /etc/nginx/snippets/oai-searchbot-ips.conf;
}

map $oai_searchbot_ip $limit_key {
    0 $binary_remote_addr;
    1 "";
}

limit_req_zone $limit_key zone=parip:10m rate=5r/s;

An empty key is not counted by limit_req: OpenAI's addresses escape the limit, the others do not. Schedule regeneration of the file (weekly cron job), then sudo nginx -t && sudo systemctl reload nginx.

Cloudflare

Versions Cloudflare dashboard, all plans, November 2026.

Three settings can stop the crawler before it reaches your server:

  1. AI crawler policies: Security > Settings, Bot traffic filter, AI Crawler and Agent access policies. The Search policy must be set to Allow (do not block).
  2. AI Crawl Control: Crawlers tab, OAI-SearchBot row, Allow action.
  3. Custom rules: if a rule blocks or challenges bots, create an exception rule above it in Security > Security rules.
(cf.client.bot and http.user_agent contains "OAI-SearchBot")

Skip action, checking the remaining custom rules, rate limiting rules, managed rules and Super Bot Fight Mode rules. The cf.client.bot field is true only for bots whose origin Cloudflare has verified: a fake OAI-SearchBot does not benefit from the exception.

Bot Fight Mode on the Free plan cannot be bypassed by a rule. Details are in check CDN, Cloudflare and WAF (opens in a new tab).

AWS

Versions AWS WAF with the Bot Control managed rule group, AWS CLI v2, November 2026 console.

With AWS WAF (Web Application Firewall) and the Bot Control managed rule group, the CategoryAI rule blocks AI bots by default, verified bots included. Two solutions: switch this rule to Count and write an exception rule (see the CDN and WAF guide), or allow OpenAI's ranges before Bot Control. Create the IP set:

aws wafv2 create-ip-set \
  --name oai-searchbot \
  --scope CLOUDFRONT \
  --region us-east-1 \
  --ip-address-version IPV4 \
  --addresses $(curl -s https://openai.com/searchbot.json | jq -r '[.prefixes[].ipv4Prefix | select(. != null)] | join(" ")')

Then add to the web ACL, in the AWS WAF console, a rule that combines this IP set with the presence of OAI-SearchBot in the User-Agent header, with the Allow action and a lower numeric priority than Bot Control. For an Application Load Balancer, replace --scope CLOUDFRONT --region us-east-1 with --scope REGIONAL and the resource's region.

Shared hosting

You only control .htaccess and robots.txt: follow the Apache section. If the curl test returns a 403 while your .htaccess contains no rule, the block comes from the host's protection: see check automatic blocking and CAPTCHAs (opens in a new tab), then contact support, citing OpenAI's documentation.

WordPress

Versions WordPress 6.7 to 7.1, Wordfence 8 and 9.

Check three places:

  • robots.txt: your SEO plugin's editor, and the AI crawler blocking options it offers.
  • Security plugins: in Wordfence, Firewall > Blocking, look for a block by user agent pattern; in Tools > Live Traffic, filter on “OAI-SearchBot” to see blocked requests.
  • The host: several managed WordPress hosts offer an AI crawler blocking setting in their dashboard. Check that it distinguishes search from training.

Shopify

Versions Shopify, all plans, November 2026.

Shopify manages the firewall: only robots.txt is in your hands, through the robots.txt.liquid template. Check that no group refuses OAI-SearchBot. Same logic on Wix, Squarespace and Webflow, where control goes through the robots.txt editor or an AI crawler blocking toggle.

Common mistakes

  • Allowing GPTBot thinking it allows search: these are two crawlers. Visibility in ChatGPT Search depends on OAI-SearchBot.
  • Opening robots.txt and forgetting the firewall: the file says yes, the CDN responds with a 403. Always test the HTTP response.
  • Creating an Allow: / group without copying the restrictions: the crawler can then crawl the directories the * group protected.
  • Allowing by user agent alone: an exception based on the name alone benefits every script that spoofs it. Combine name and IP addresses, or a verified bot signal.
  • Freezing the IP list: published ranges change; a list copied once ends up blocking the crawler.
  • Drawing conclusions too quickly: after a change, wait about 24 hours before judging.
  • Expecting an automatic citation: allowing the crawler makes the page eligible; the choice of sources belongs to ChatGPT.

Frequently asked questions

Does blocking GPTBot remove me from ChatGPT?

No, blocking GPTBot does not remove you from ChatGPT Search. GPTBot collects content that may be used to train OpenAI's models; OAI-SearchBot is the one that indexes pages for ChatGPT search. The settings are independent: you can refuse GPTBot in robots.txt and allow OAI-SearchBot, which must also receive a 200 response from your server and your firewall.

What happens if I refuse OAI-SearchBot?

If you refuse OAI-SearchBot, your site is no longer shown in ChatGPT search answers, according to OpenAI's documentation; it may still appear as a plain navigational link. This refusal changes nothing for model training, controlled by GPTBot, nor for ChatGPT-User reading a page at a user's request, nor for your ranking in Google or Bing.

How long does ChatGPT take to apply a robots.txt change?

OpenAI states that it takes about 24 hours after a robots.txt change for its search systems to adjust. Wait that long before judging the effect of allowing or refusing OAI-SearchBot. Then check in your logs that the real crawler visits and receives 200 responses, since a firewall can still block it despite an open robots.txt.

Why does OAI-SearchBot get a 403 error when robots.txt allows it?

A 403 error despite an open robots.txt comes from another layer: a firewall rule, the CDN's AI crawler policy, a “bad bot” list in a .htaccess file or a security plugin. robots.txt expresses a preference; the firewall applies its own. Find the rule that names the crawler, then create an exception based on its name and its official address ranges.

Updated on

Topic checklist (PDF)

And now?

In the “AI crawler access and data policy” topic

  1. List the AI crawlers you target
  2. Define rules for search, training and user-triggered access
  3. Configure robots.txt to match these goals
  4. Allow OAI-SearchBot if you want ChatGPT visibility
  5. Allow PerplexityBot if you want Perplexity visibility
  6. Allow Claude-SearchBot if you want Claude visibility
  7. Check Googlebot and Bingbot
  8. Check the AI reports available in search engine tools
  9. Check Bing-specific controls
  10. Check CDN, Cloudflare and WAF
  11. Check automatic blocking and CAPTCHAs
  12. Test HTTP responses for each crawler
  13. Check geographic restrictions
  14. Check rate limits
  15. Verify crawler identity against official IP ranges if possible
  16. Analyze AI crawler logs
  17. Check nosnippet, max-snippet and data-nosnippet
  18. Check search engine-specific directives
  19. Make public pages accessible without logging in
  20. Protect private content with authentication
  21. Document the training policy and review it periodically