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. If you want assistants to find your business, the whole file can be a few lines. Below are the user agents that matter and what to write for them. The score counts only the search crawlers and the fetchers that read a page when someone asks; keeping the training crawlers out costs nothing (specification 1.1, 18 November 2026).

The ones that matter

User agentWhoWhat it does
GPTBotOpenAIReads pages to train models.
OAI-SearchBotOpenAIIndexes pages for ChatGPT search results.
ChatGPT-UserOpenAIFetches a page when someone asks ChatGPT something about it.
ClaudeBotAnthropicReads pages that may be used to train models.
Claude-SearchBotAnthropicIndexes pages to make Claude's search answers relevant and accurate.
Claude-UserAnthropicFetches a page when someone asks Claude.
PerplexityBotPerplexityIndexes pages for Perplexity answers.
Perplexity-UserPerplexityFetches a page when someone asks Perplexity a question.
Google-ExtendedGoogleNot a crawler but a switch: whether Google may use your pages to train Gemini and to ground answers in the Gemini apps. Google Search, AI Overviews included, uses the normal Googlebot and isn't affected.

A file that lets them all in

User-agent: *
Allow: /

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

That's also what happens when there's no robots.txt at all, so most sites don't need to change anything. The problem is usually a rule someone added. Look for lines like these and delete them:

User-agent: GPTBot
Disallow: /

Opting out of training only

If you don't want your pages used for training but do want to be found when someone asks, disallow only the training user agents:

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: *
Allow: /

Claude-SearchBot and Claude-User still read your pages for Claude's answers, as OAI-SearchBot and ChatGPT-User do for ChatGPT. Add Google-Extended to the list only if you also accept leaving the Gemini apps' answers: Google uses the same switch for both. None of this costs anything in the score.

Content Signals

A newer, optional line puts your preferences in one place. Cloudflare reads it, and so do a growing number of crawlers:

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

ai-input is the part that matters for appearing in answers. The scanner reports the line when it finds one, but it doesn't count toward the score.

Where to edit it

Where your site is builtWhere the setting lives, October 2026
WordPressYoast and Rank Math have a robots.txt editor under Tools. Without them, the file is in the site root.
WixSEO, Tools and settings, Robots.txt Editor.
SquarespaceYou can't edit the file. 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 doesn't match, search the dashboard for the word in bold.

Check it

To see what crawlers make of your file today, run the free scanner on your address. The report names each crawler that was refused and what it found for the menu, the structured data and the booking path, then says what to fix first. Rescans are free.

More guides

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