The Direct Index
Guide

robots.txt for AI agents: who to allow, and how

robots.txt is a text file at yourbusiness.com/robots.txt that tells crawlers what they may read. For a business that wants to be found by assistants, the whole file can be eight lines. Here is who the user agents are and what to write.

The eight that matter

User agentWhoWhat it does
GPTBotOpenAIReads pages to train models.
OAI-SearchBotOpenAIIndexes pages for ChatGPT search results.
ChatGPT-UserOpenAIFetches a page when a person asks ChatGPT something about it.
ClaudeBotAnthropicReads pages to train and to index.
Claude-UserAnthropicFetches a page when a person asks Claude.
PerplexityBotPerplexityIndexes pages for Perplexity answers.
Perplexity-UserPerplexityFetches a page for a person's question.
Google-ExtendedGoogleControls use in Gemini training; Google's AI features use the normal Googlebot.

A file that lets them all in

User-agent: *
Allow: /

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

That is the default when there is no robots.txt at all, so most sites need no change. The problem is usually a rule someone added. Look for these and delete them:

User-agent: GPTBot
Disallow: /

Out of training, in the answers

If you do not want your pages used for training but do want to be found when someone asks, disallow the training tokens only:

User-agent: GPTBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: *
Allow: /

ClaudeBot does both jobs, so blocking it also removes you from Claude's answers.

Content Signals

A newer, optional line states your preferences in one place, read by Cloudflare and a growing number of crawlers:

Content-Signal: search=yes, ai-input=yes, ai-train=no

ai-input is the one that matters for appearing in answers. The scanner reports the signal when it finds one; it is not scored.

Where to edit it

Where your site is builtWhere the setting lives, October 2026
WordPressYoast or Rank Math have a robots.txt editor under Tools; otherwise the file sits in the site root.
WixSEO, Tools and settings, Robots.txt Editor.
SquarespaceNot editable; use Settings, Crawlers instead.
ShopifyOnline Store, Themes, Edit code, template robots.txt.liquid.
WebflowSite settings, SEO, Indexing.

Dashboards move things around. If a name here does not match, search the dashboard for the word in bold.

Check it

Not sure what your file says today? Run the free scanner on your address: the report names each crawler that was refused, what it found for the menu, the structured data and the booking path, and what to fix first. Rescans are free.

More guides

Updated 2026-10-14. Dashboard names are as of that date.