Robots.txt Generator for AI Crawlers
Configure which AI search bots can index your content and which training crawlers stay out.
Last updated:
To opt out of generative artificial intelligence (AI) training in robots.txt, choose a shared training preference to request no training. At Layer3Labs, we run technical search engine optimization (SEO) audits across the sites we build and operate. That setting writes User-agent: __usage_ai-training with Disallow: / alongside your crawler rules before you deploy the file at your site root.
This generator formats directives for eleven individual AI bots while generating the shared training policy token. Requesting no AI training signals your preference to participating AI systems without cutting off search crawlers. However, Google-Extended still controls Gemini training and grounding together.
This generator handles group inheritance automatically. Under the Robots Exclusion Protocol (RFC 9309), a crawler that finds a group naming it ignores the * group. The Robots.txt Generator therefore repeats your private-path Disallow lines in the group for allowed crawlers, so OAI-SearchBot and the other named crawlers that follow robots.txt still skip those paths.
The Crawl Rules Read Back by This Generator table displays a local interpretation of your directives rather than observed provider behavior. Copy the text or download the file. Save it using 8-bit Unicode Transformation Format (UTF-8) encoding and upload it to your site root.
Robots.txt Generator
Uses the proposed __usage_ai-training policy token. This preference is separate from crawler access rules. Read the individual draft.
Search and citations
User-requested fetches
Training
Blocking Google-Extended opts your content out of Gemini model training and Gemini grounding. Per Google's crawler documentation, it does not affect inclusion in Google Search.
ChatGPT-User and Claude-User fetch a page when a person asks for it. OpenAI says robots.txt rules may not apply to ChatGPT-User for that reason.
These public crawl rules do not protect confidential files. Use authentication for restricted content.
Your robots.txt
User-agent: * Allow: / User-agent: OAI-SearchBot User-agent: Googlebot User-agent: Bingbot User-agent: Claude-SearchBot User-agent: PerplexityBot User-agent: ChatGPT-User User-agent: Claude-User Allow: / User-agent: GPTBot User-agent: ClaudeBot User-agent: Google-Extended User-agent: CCBot Disallow: / User-agent: __usage_ai-training Disallow: /
Save it as robots.txt at the root of your site (for example https://www.example.com/robots.txt), then check which AI crawlers can reach your site.
Shared training preference in this file: request no generative-AI training.
The readback describes the file. Provider adoption and crawler behavior can differ. Existing provider controls continue to apply.
Crawl Rules Read Back by This Generator
Local interpretation using the same parser as the AI crawler checker, for your home page.
| Crawler | Your choice | Home page |
|---|---|---|
| OAI-SearchBot | Allow | Allowed by rules |
| Googlebot | Allow | Allowed by rules |
| Bingbot | Allow | Allowed by rules |
| Claude-SearchBot | Allow | Allowed by rules |
| PerplexityBot | Allow | Allowed by rules |
| ChatGPT-User | Allow | Allowed by rules |
| Claude-User | Allow | Allowed by rules |
| GPTBot | Block | Disallowed by rules |
| ClaudeBot | Block | Disallowed by rules |
| Google-Extended | Block | Disallowed by rules |
| CCBot | Block | Disallowed by rules |
All 11 crawler rule interpretations match your choices.
How to Set Up Robots.txt for AI Crawlers
You set up robots.txt for AI crawlers by giving each choice its own user-agent group in one file at your site root.
To signal an opt-out from generative training across participating AI systems, choose Request no generative-AI training in the Shared Generative-AI Training Preference selector. The generator outputs a dedicated two-line group with User-agent: __usage_ai-training followed by Disallow: /. Choosing Explicitly allow generative-AI training prints Allow: /, while Leave shared preference unspecified omits the group entirely.
This mechanism originates from an Internet Engineering Task Force (IETF) individual Internet-Draft published on October 30, 2026. It is not an IETF-endorsed final standard. Under Sections 4.1 and 4.2 of the draft, the policy token matches case-insensitively, but a standard wildcard User-agent: * does not express a shared training preference.
Omitting the token leaves your training preference unspecified rather than permitted. Section 4.5 notes that private agreements and specific provider controls can take precedence. For instance, Google plans to treat a shared training disallow without a separate Google-Extended rule as a disallow for Google-Extended.
Setting an explicit Allow: / for Google-Extended overrides that refusal for Google services, rather than granting an isolated permission for Gemini grounding.
Follow these steps to generate and deploy your file:
- 1. Select a preset or set custom rules for the eleven supported AI crawlers.
- 2. Select your Shared Generative-AI Training Preference to disallow training, allow training, or omit the shared group.
- 3. Add paths in Paths Crawlers Should Skip and optionally enter your full sitemap web address. The generator repeats those path rules in the allowed crawler group.
- 4. Review the generated directives and inspect the Crawl Rules Read Back by This Generator table.
- 5. Copy the generated text or download the
robots.txtfile. - 6. Upload the file to your web server at the root directory of your domain using UTF-8 encoding.
- 7. Probe your server responses and test rule interpretation using our free AI crawler checker.
Choosing a Preset for Your Crawling Strategy
The generator includes three presets to quickly configure common crawling policies.
The default preset, Allow AI search, block AI training, permits search bots and user-directed fetchers while blocking training bots. It sets Allow for OAI-SearchBot, Googlebot, Bingbot, Claude-SearchBot, PerplexityBot, ChatGPT-User, and Claude-User. It sets Block for GPTBot, ClaudeBot, Google-Extended, and CCBot. According to Google documentation on common crawlers, Google-Extended is a standalone product token that controls whether site content is used for Gemini training and grounding. Blocking Google-Extended does not affect your inclusion in Google Search and is not a ranking signal. See what each crawler does in the AI Crawler Checker.
The second preset, Allow every AI crawler, sets every crawler to Allow.
The third preset, Block every AI crawler (keep Google and Bing Search), blocks all AI search, user-fetch, and training bots while leaving Googlebot and Bingbot set to Allow. Pick it if you want Google and Bing search traffic but want the other AI search, user-fetch and training crawlers in the list kept out. OpenAI says sites that block OAI-SearchBot do not appear in ChatGPT search answers, and Anthropic says blocking Claude-SearchBot may reduce visibility in Claude's search results.
Each preset assigns a coordinated shared training preference alongside its crawler rules. The default preset selects Request no generative-AI training. Block every AI crawler (keep Google and Bing Search) also selects Request no generative-AI training.
Allow every AI crawler selects Explicitly allow generative-AI training. Changing an individual crawler keeps your chosen shared preference intact. Adjusting the shared preference switches the configuration selector to Custom without modifying your individual crawler rules.
Reading the File the Generator Writes
The generator organizes rules into structured blocks to ensure every bot receives explicit instructions. In standard robots.txt files, rules are grouped under User-agent lines. Per Google documentation on creating a robots.txt file, a crawler matches only one rule set: the most specific group that matches its user agent. The standard wildcard token matches all crawlers except Google AdsBot crawlers, which require explicit naming.
The default configuration generates four separate groups: a global wildcard block, an allowed search crawler block, a blocked crawler block, and the shared training preference block. The first three groups manage crawler access paths across your site. The fourth group, User-agent: __usage_ai-training, functions as a site-wide policy statement rather than a rule for an individual crawler.
The second group explicitly names every allowed AI search and user-fetch bot alongside traditional search crawlers. This group lists User-agent: OAI-SearchBot, Googlebot, Bingbot, Claude-SearchBot, PerplexityBot, ChatGPT-User and Claude-User, then Allow: /.
The third group lists GPTBot, ClaudeBot, Google-Extended and CCBot, then Disallow: /.
Under RFC 9309, a named crawler group overrides wildcard rules. For example, Disallow: /admin/ under User-agent: * does not apply to OAI-SearchBot when its named group contains Allow: /.
Add /admin/ to Paths Crawlers Should Skip. The generator repeats Disallow: /admin/ in the allowed crawler group, so its rule interpretation disallows /admin/login while allowing /.
With no crawl-skip paths, named Allow groups do not create this gap. The readback table shows the path decisions, while the shared training group remains separate.
AI providers are rolling out support for the shared training preference signal on independent schedules. Google announced planned support for 2027 on October 30, 2026. Its current crawler documentation specifies early 2027.
Under Google's plan, a shared disallow applies as a Google-Extended disallow when no explicit Google-Extended group exists. Microsoft announced it will honor the preference starting February 1, 2027, as pages are crawled, while keeping ordinary Bing search indexing independent. OpenAI announced on October 30, 2026, that it intends to implement the signal in coming months.
In an IETF mailing list update on October 30, 2026, draft author Kevin Kelley reported that Anthropic has started implementation and that rollout will take time across services. Existing per-provider crawler controls continue to operate alongside the shared signal, with no assumption that individual directives will end.
Path and Sitemap Syntax Rules
Every path entered in Paths Crawlers Should Skip must begin with a forward slash. Rules are case-sensitive, per Google's robots.txt guide. A rule targeting /private.html will not match requests for /PRIVATE.html or /Private.html.
Sitemap declarations must point to a complete web address. Under Google robots.txt guidelines, the Sitemap directive requires a fully qualified URL including the protocol, host, and path. The generator validates your sitemap input and will omit the line if you provide an incomplete or relative path.
Keep in mind that robots.txt is a publicly viewable plain-text document, not an access control system. Anyone can inspect your file to see the directory paths you have listed. If a path contains proprietary files or sensitive administrative tools, protect that content using server-level authentication or login credentials rather than relying on robots.txt disallow rules.
Our Takeaway on Structuring Robots.txt
For most business sites that want AI search answers to cite them, allow the AI search and user-fetch crawlers and keep Googlebot and Bingbot open. Block GPTBot, ClaudeBot and CCBot, and decide Google-Extended knowingly. Blocking Google-Extended opts your site out of Gemini model training and grounding, does not affect inclusion in Google Search, and is not a ranking signal.
Keep crawl-skip paths in the allowed crawler group and leave the shared training-preference group separate. Choose Request no generative-AI training to add the site-wide training refusal, then inspect your file with the AI Crawler Checker.
It does not fit a site that wants to stay out of AI search entirely. Pick Block every AI crawler (keep Google and Bing Search) to leave ChatGPT search answers and possibly lose visibility in Claude's search results. Googlebot and Bingbot stay allowed in that preset, so Google's and Bing's own AI answers can still read your pages. It also does not serve a site that needs access control. Put confidential documents behind a login, because anyone can read robots.txt.
The shared training preference coexists with bot-specific directives rather than replacing them. Our recommendation would change if the IETF draft changes or if providers alter their stated adoption schedules. Inspect your rules and server responses with the AI crawler checker.
Use the AI visibility checker for discovery signals or the llms.txt generator for structured site context. Adjust your options in the robots.txt generator above to publish your file.
Frequently Asked Questions
- No, a site works without one. You need a robots.txt file when you want crawlers to skip parts of your site or want to keep AI training crawlers out.
- A robots.txt file works by publishing text instructions at the root of your web domain. A crawler reads the file, finds the most specific user-agent group that matches it and follows the Allow and Disallow rules in that group.
- A standard example separating AI search from AI training uses explicit user-agent groups. The file starts with a general wildcard group, followed by an allow group for search bots like OAI-SearchBot and Bingbot, and a disallow group for training crawlers like GPTBot and CCBot with Disallow: /.
- You must upload the robots.txt file to the top-level root directory of your web host. The file must be accessible directly at the domain root and saved as a UTF-8 encoded text document.
- No. robots.txt is a public request, not access control, so crawlers that ignore it are not stopped. OpenAI says robots.txt rules may not apply to
ChatGPT-User, and Perplexity saysPerplexity-Usergenerally ignores them because a user requested the fetch. Common Crawl also warns that some crawlers falsely identify themselves as CCBot. - Select Request no generative-AI training to generate
User-agent: __usage_ai-trainingfollowed byDisallow: /. Keep provider-specific crawler controls while support for the October 30, 2026, individual draft rolls out. The shared preference cannot erase previous training or stop scrapers that ignore robots.txt.
Need help managing AI search access and technical SEO?
Several hosts or a firewall in front of the server can leave crawler rules that contradict each other. In an advisory engagement, Layer3Labs checks those rules against your robots.txt and fixes the conflicts before a release goes live.
Book a Consultation