Skip to content
Intura
Blog / Robots.txt
EnglishRobots.txtAI CrawlersAI SearchTechnical SEO

Robots.txt for AI Crawlers: Allow ChatGPT and Perplexity Search, Block Training

Set up robots.txt for AI crawlers: which bots power search and which collect training data, a template to copy, the Cloudflare settings that can override it, and how to test it.

Muhammad Ramadiansyah · Co-Founder & CTO Intura9 min read

Robots.txt for AI Crawlers: Allow ChatGPT and Perplexity Search, Block Training

To stay visible in AI search while keeping your content out of model training, allow the search crawlers (OAI-SearchBot, Claude-SearchBot, PerplexityBot) and the bots that fetch pages on a user's request (ChatGPT-User, Claude-User) in robots.txt, and disallow only the training crawlers (GPTBot, ClaudeBot) and the Google-Extended token. Then check the live file and your CDN's bot settings, because a firewall such as Cloudflare can block AI bots that robots.txt allows.

This guide is for marketers, founders and site owners who want ChatGPT, Claude, Perplexity and Gemini to be able to read and cite their site, and who have a decision to make about training. It covers which bot does what, a robots.txt template you can copy, the Cloudflare settings that can override it, and a checklist for testing the result.

Intura sells website audits, one of whose checks is AI crawler access, and the Data AI Search platform for measuring AI search visibility. Bot names and behaviour come from each company's own documentation, checked on 28 November 2026. The robots.txt examples in this article are templates, not a client's configuration.

Which AI bots visit your website, and what does each one do?

The major AI companies now run separate bots for separate jobs: one indexes pages for their search feature, one fetches a page when a user asks about it, and one collects content for model training. Each bot reads its own name in robots.txt, so you can allow one job and refuse another.

CompanySearch indexFetch on a user's requestModel training
OpenAIOAI-SearchBotChatGPT-UserGPTBot
AnthropicClaude-SearchBotClaude-UserClaudeBot
PerplexityPerplexityBotPerplexity-UserNo documented training bot
GoogleGooglebot (Google Search)—Google-Extended (a token, not a separate crawler)

What each company's documentation says:

  • OpenAI. OAI-SearchBot surfaces websites in ChatGPT's search features. OpenAI writes: "Sites that are opted out of OAI-SearchBot will not be shown in ChatGPT search answers, though can still appear as navigational links." Disallowing GPTBot signals that content should not be used to train OpenAI's foundation models. ChatGPT-User acts on user requests, and OpenAI notes that robots.txt rules may not apply to it.
  • Anthropic. ClaudeBot collects content that may be used for training, Claude-SearchBot indexes for search quality, and Claude-User retrieves pages when a Claude user asks. Anthropic says blocking Claude-User may reduce a site's visibility in user-directed web search, and that its bots honour robots.txt, including the non-standard Crawl-delay extension.
  • Perplexity. PerplexityBot surfaces and links websites in Perplexity's search results and, according to Perplexity, isn't used to crawl content for AI foundation models. Perplexity-User fetches pages for users and "generally ignores robots.txt rules", because a person asked for the page.
  • Google. Google-Extended is a token you name in robots.txt to control whether content Google crawls may be used to train future Gemini models and for grounding in the Gemini app and Vertex AI. Google states that it "does not impact a site's inclusion in Google Search nor is it used as a ranking signal". Rules for Google Search are still written for Googlebot.

The point to keep: blocking training and blocking search are two different lines in robots.txt. They're easy to mix up. A site that disallows GPTBot to protect its content hasn't left ChatGPT, while a site that unknowingly blocks OAI-SearchBot won't show up in ChatGPT's search answers, however good its pages are.

Should you block AI training, or allow everything?

For most businesses that want customers to find them through AI, our advice is to allow everything, training included. Block training only when the content itself is what you sell: paid articles, original research, course material, or a database with resale value.

The reasoning is simple. An AI model can only recommend a brand it knows. Search crawlers give AI engines fresh pages to cite when they search the web. Training data shapes what a model knows when it answers without searching. For a clinic, a SaaS company or a fashion label, being known to the model is the whole point. For a publisher, training is closer to handing over the stock for free.

Type of siteSearch crawlers and user fetchersTraining crawlers
Brand, services, SaaS, online shop, small businessAllowAllow (our default)
Media, paid content, research, coursesAllowBlock, if licensing matters more than reach
Staging, internal tools, client portalsBlock everything, and put it behind a loginBlock

This table is our judgment, not a rule from any AI company.

We took the first option for intura.co. Our robots.txt allows the training crawlers as well as the search ones, because being quoted by an AI assistant is a channel we actively want. The wildcard rule already allows all of them, but we still list every AI bot by name. That makes the decision visible in the code, and reversible in one place if our position on training ever changes.

What does a robots.txt that allows AI search but blocks training look like?

Put the search bots and user fetchers in one group, the training bots in another, and repeat your private paths in every group. The repetition isn't optional: a bot that finds its own name stops reading the wildcard group.

# Every other bot, search engines included
User-agent: *
Disallow: /admin/
Disallow: /cart/

# AI search and user requests: allow
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: Perplexity-User
Disallow: /admin/
Disallow: /cart/

# Model training: block
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
Disallow: /

Sitemap: https://example.com/sitemap.xml

Four things to know before you paste it:

  • One group can hold several user agents. Stack the User-agent lines, then write the rules once.
  • A bot with its own group ignores the * group. RFC 9309, the robots.txt standard, says crawlers fall back to the * group only "If no matching group exists". Google's documentation says the same: "Other groups are ignored." So if your * group disallows /admin/, copy that line into every named group, or those bots are free to crawl /admin/.
  • The most specific rule wins. When an Allow and a Disallow both match a URL, the longer path applies. If they're the same length, Allow is used.
  • To allow everything, delete the training group. Nothing else needs to change.

We've run into the second point ourselves. On intura.co the private API path is written twice, once in the wildcard group and once in the AI crawler group, because the named bots no longer read the wildcard rules. We also once disallowed account pages such as login and cart in robots.txt. Search Console then reported them as "Blocked by robots.txt" instead of "Excluded by noindex", because Google couldn't fetch the pages to see their noindex tag. Google's own guide says robots.txt "is not a mechanism for keeping a web page out of Google". To hide a page, use noindex or a password.

Why can AI bots still be blocked when robots.txt allows them?

Because robots.txt is only a request. A CDN, firewall or security plugin can refuse a bot before it ever reads the file. If your site runs on Cloudflare, start there, because its AI bot settings have changed several times since 2025.

  • 1 July 2025. Cloudflare changed its default to block AI crawlers unless they pay content creators, and opened its managed robots.txt feature to every customer, Free plan included.
  • 1 July 2026. The single "Block AI bots" toggle was replaced by three categories set separately: Search (crawlers that index content to answer questions later), Agent (automated activity acting in real time on a person's behalf, such as ChatGPT-User) and Training. Each can be allowed, blocked, or blocked only on pages that show ads.
  • 15 September 2026. New domains onboarding to Cloudflare get updated defaults: Training and Agent bots are blocked on pages that display ads, while Search stays allowed.

Two details matter for AI visibility. First, Cloudflare's July 2026 announcement said multi-purpose crawlers such as Googlebot, Applebot and BingBot "will be blocked by customers who have selected to block Training". Its managed robots.txt documentation, updated in November 2026, says mixed-use crawlers are excluded from that block. If you block Training on Cloudflare, check how your zone treats Googlebot and Bingbot rather than assuming either way. Second, with Bot Preference Sync on, Cloudflare adds its own lines to the top of your robots.txt: a Content-signal line (search=yes, ai-train=no, use=reference) and Disallow rules for GPTBot, ClaudeBot, Google-Extended and several other training bots. The robots.txt that bots see can differ from the file you wrote in your CMS.

Where to check: in the Cloudflare dashboard, open your zone's Security settings, filter by "Bot traffic" and look at "AI Crawler and Agent access policies". AI Crawl Control (formerly AI Audit) shows which crawlers visit, lets you allow or block them one by one, and monitors robots.txt compliance.

If you're not on Cloudflare, the same check applies to your hosting firewall, a WordPress security plugin, or any bot-protection service: look for rules that block by user agent or by an "AI bot" category.

How do you check that AI crawlers can actually reach your site?

Check the live robots.txt, then the firewall, then your server logs. Only the logs prove that the real bot got a 200 response.

  1. Open the live file. Visit https://yourdomain.com/robots.txt in a browser, not the copy in your CMS or repository. Look for Disallow: / under any AI bot's name, a leftover User-agent: * with Disallow: / from a staging site, and lines your CDN added.
  2. Check the robots.txt report in Search Console (Settings › robots.txt). It shows which robots.txt files Google found for the top 20 hosts on your site, when each was last crawled, and any warnings or errors. After a critical fix you can request a recrawl. It covers Google only.
  3. Check your CDN or firewall rules as described in the previous section.
  4. Read the server logs. Count each AI bot's requests by status code. The command below works with the standard combined log format of Nginx and Apache. Lots of 403 or 503 responses for a bot you allow means something in front of the site is refusing it.
  5. Verify the IP when it matters. Anyone can fake a user agent. OpenAI, Anthropic and Perplexity publish their bots' IP ranges, so you can confirm a request really came from them. Testing with curl and a fake user agent only shows how your server treats the name. A CDN that verifies bots by IP may treat the real bot differently.
  6. Allow time. OpenAI says it can take about 24 hours after a robots.txt update for its search systems to adjust, Perplexity says up to 24 hours, and Google generally caches robots.txt for up to 24 hours.
for bot in OAI-SearchBot ChatGPT-User GPTBot Claude-SearchBot Claude-User ClaudeBot PerplexityBot Perplexity-User; do
  echo "== $bot"
  grep "$bot" access.log | awk '{print $9}' | sort | uniq -c
done

Official IP lists: OpenAI at searchbot.json, gptbot.json and chatgpt-user.json; Anthropic at bots.json; Perplexity at perplexitybot.json and perplexity-user.json.

Which robots.txt mistakes make a site disappear from AI answers?

  • A staging file shipped to production. User-agent: * with Disallow: / blocks every compliant crawler, AI or not.
  • Blocking the wrong OpenAI bot. Blocking OAI-SearchBot to prevent training removes your site from ChatGPT's search answers and does nothing about training. The training bot is GPTBot.
  • A named group without your private paths. The bot follows only its own group, so rules in the * group don't apply to it.
  • Using robots.txt to hide pages. A blocked page can't show its noindex tag.
  • A robots.txt that errors. If /robots.txt returns a server error (5xx), RFC 9309 tells crawlers to "assume complete disallow". Google stops crawling for the first 12 hours, then uses the last good copy for up to 30 days. A 404, by contrast, means no restrictions at all.
  • Expecting robots.txt to stop copying. The standard says its rules "are not a form of access authorization", and user fetchers such as Perplexity-User generally ignore it. Content that must stay private needs a login.

What doesn't this guide cover?

  • Letting AI crawlers in makes your pages readable, not automatically cited or recommended. That depends on your content and on what other sites say about your brand. The steps are in our guide to getting your brand mentioned in ChatGPT.
  • Bot names and policies keep changing. Since 30 October 2026 Anthropic has recognised a machine-readable AI-training preference signal, and Google says it intends to support the AIPREF training-preference signal in early 2027. Re-check the official pages at least once a quarter.
  • We have no data on how many Indonesian websites block AI crawlers, so we haven't given a figure.
  • The Cloudflare pages we read don't say whether existing domains, as opposed to new ones, were moved to the September 2026 defaults. Check your own zone.
  • Other training crawlers, such as those in Cloudflare's managed robots.txt list (Applebot-Extended, Bytespider, CCBot, meta-externalagent), have their own documentation and aren't covered here.

AI crawler access is one of the checks in our website audit, alongside the sitemap, llms.txt and schema. You can see what the report looks like in our AI search audit deliverable example. If AI already mentions your brand but gets the facts wrong, follow the steps in how to fix wrong brand information in ChatGPT and Gemini. To see whether AI engines mention your brand at all, start with the free AI visibility audit.

Sources

Frequently asked questions

What is the difference between OAI-SearchBot and GPTBot?

OAI-SearchBot indexes pages for ChatGPT’s search features, while GPTBot collects content that may be used to train OpenAI’s models. They’re set separately in robots.txt. Blocking GPTBot doesn’t remove your site from ChatGPT search, but blocking OAI-SearchBot means your site won’t be shown in ChatGPT’s search answers.

Does blocking Google-Extended remove my site from Google Search?

No. Google states that Google-Extended doesn’t affect whether a site is included in Google Search and isn’t used as a ranking signal. The token only controls whether content may be used to train Gemini models and for grounding in the Gemini app and Vertex AI. Rules for Google Search are written for Googlebot.

How long does a robots.txt change take to work for AI crawlers?

About a day. OpenAI says its search systems need roughly 24 hours to adjust, Perplexity says up to 24 hours, and Google generally caches robots.txt for up to 24 hours. If your site sits behind a CDN, also make sure the CDN cache isn’t serving an old copy of the file.

Can robots.txt stop AI tools from reading or copying my content?

Not fully. Robots.txt is a request, not a lock: RFC 9309 says its rules are not a form of access authorization. Bots that fetch pages on a user’s request, such as Perplexity-User, generally ignore it. Content that must stay private needs a login or a paywall.

Should a small business block AI training crawlers?

In our view, usually not. A business that wants AI to recommend it benefits when models know the brand. Blocking training makes sense when the content itself is what you sell, such as paid articles, research or course material. Whatever you choose, don’t block the AI search crawlers.