Build a robots.txt with per-crawler rules, including GPTBot, ClaudeBot and Google-Extended, and test whether a URL is blocked, with the line that decided.
A generator with AI bots and a tester that follows RFC 9309 and shows the deciding line.
robots.txt is the file at the root of a site (/robots.txt) where you tell each crawler which paths it may request. The format became an IETF standard in September 2022, as RFC 9309, and it is simple: groups that start with User-agent and continue with Allow and Disallow lines. This tool generates the file and also tests an existing robots.txt: paste the text, one or more URLs and the crawler name, and see whether each URL is allowed, which rule decided and on which line it sits.
The test decides the way the RFC says: the group for the crawler's token applies (case-insensitive) and, if there is none, the * group; groups for the same token are merged; a specific group does not inherit the rules of *. Among the rules that match the path (plus the query), the longest pattern wins, and on a tie Allow wins. * matches any sequence, $ at the end anchors the end, and percent-encoding is normalized before comparing. The Google mode adds the tolerances of its open-source parser: typos such as disalow, lines without a colon, and the rule that Allow: /folder/index.html also allows /folder/. The read limit is 500 KiB.
The AI bot section carries each vendor's token, checked against the official pages on 2026-10-18, and separates three purposes: training (GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, Amazonbot, meta-externalagent), search (OAI-SearchBot, Claude-SearchBot, PerplexityBot) and access on a user's request (ChatGPT-User, Claude-User, Perplexity-User). Blocking training does not remove the site from search, and user-triggered access may ignore robots.txt, as OpenAI, Perplexity, Meta and Amazon warn. Google-Extended and Applebot-Extended crawl nothing: they only signal a preference about data Googlebot and Applebot already collected. For Bytespider no official page could be opened, and it is marked as such. Remember that robots.txt is a request, not a barrier: it does not protect content and does not remove pages from the index. Everything runs in the browser and the pasted text is not sent anywhere.
How to use
Pick a preset, tune the bots and publish at the site root.
In Generate, start from a preset (WordPress, Next.js, online store, block AI training), adjust the groups and mark Allow or Block on each AI bot.
Copy or download the file and publish it at /robots.txt, at the root of each host. Add a Sitemap line with the full URL.
In Test, paste the robots.txt, the URLs and the crawler. See whether each URL is allowed, the line that decided and the validation warnings.
Embed
Use this tool on your site
Paste the code into your HTML and the tool shows up on your page, without J-Kit's navigation and ads. It still runs in the browser of whoever visits your site.
<iframesrc="https://jkit.tools/embed/en-US/robots-txt-generator"width="100%"height="600"style="border:0"loading="lazy"referrerpolicy="no-referrer-when-downgrade"title="robots.txt Generator and Tester (with AI Bots)"></iframe><p style="font-size:12px;margin:6px 0 0">Tool by <a href="https://jkit.tools/en/tools/robots-txt-generator">J-Kit</a></p>
Cite
Cite or link to this tool
Using it in a paper, class or post? Copy the link or a ready-made reference. The access date is today's.
<a href="https://jkit.tools/en/tools/robots-txt-generator">robots.txt Generator and Tester (with AI Bots)</a>
References
Sources and references for this tool
These references help contextualize formulas, standards, APIs and limitations used on this page. They do not replace professional validation when a result has legal, financial, medical or operational impact.
Write a group with each bot's token and Disallow: /, for example User-agent: GPTBot followed by Disallow: /. Several User-agent lines in a row share the same rules, so you can list them all at once. The Block AI training preset marks GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBot, Bytespider, meta-externalagent and Amazonbot. It is a request: vendors say they honor it, but it does not stop technical access.
Use * for everyone. Several names in a row share the same rules.
Advanced
Not part of RFC 9309, and Google ignores it. Only some crawlers honor it.
AI crawlers
Each bot has its own token. Blocking the training one does not remove the site from AI search, and the search bot is independent of the training bot. Default = the bot follows the rules of the * group.
Training
They collect content that may train AI models.
GPTBotOpenAITraining
What it is and what blocking changes
Crawls content that may be used to train OpenAI generative AI foundation models.
Signals that the site content should not be used for training. It does not remove the site from ChatGPT search answers (that depends on OAI-SearchBot).
Control token: sets whether content Google already crawls may train future Gemini generations and ground answers in Gemini Apps and Vertex AI. It has no HTTP user agent of its own.
Per Google, it does not affect inclusion in Google Search and is not a ranking signal. The Google page does not mention AI Overviews.
Control token: it does not crawl. It sets how Apple uses data Applebot already collected, in particular for training general-purpose generative models.
Opts the site out of Apple model training. Pages can still appear in search results (Spotlight, Siri, Safari), which depend on Applebot.
They index for AI search answers and cite the site.
OAI-SearchBotOpenAISearch
What it is and what blocking changes
Surfaces websites in ChatGPT search results.
The site is no longer shown in ChatGPT search answers, but can still appear as a plain navigational link. OpenAI says the change can take about 24 hours.
Publish at https://yourdomain/robots.txt, at the host root. Each subdomain and each port needs its own.
0.1 KiB of the 500 KiB crawlers read.
Token used in the test: Googlebot. A full User-Agent string also works.
InterpretationFollows RFC 9309 to the letter.
3allowed1blocked
File with the rule highlighted
For the URL selected above: winning line in strong highlight, other matching rules in yellow and the rest of the applied group softly shaded.
1User-agent: *
2Disallow: /admin/
3Allow: /admin/public/
4
5User-agent: GPTBot
6Disallow: /
7
8Sitemap: https://example.com/sitemap.xml
9
All crawlers at once
Result of the first 6 URLs for Googlebot, Bingbot and every AI bot in the list.
Crawler
/
/admin/users
/admin/public/logo.png
/blog/post?id=7
Googlebot
Allowed
Blocked
Allowed
Allowed
Bingbot
Allowed
Blocked
Allowed
Allowed
GPTBot
Blocked
Blocked
Blocked
Blocked
OAI-SearchBot
Allowed
Blocked
Allowed
Allowed
ChatGPT-User
Allowed
Blocked
Allowed
Allowed
OAI-AdsBot
Allowed
Blocked
Allowed
Allowed
ClaudeBot
Allowed
Blocked
Allowed
Allowed
Claude-SearchBot
Allowed
Blocked
Allowed
Allowed
Claude-User
Allowed
Blocked
Allowed
Allowed
Google-Extended
Allowed
Blocked
Allowed
Allowed
Applebot-Extended
Allowed
Blocked
Allowed
Allowed
PerplexityBot
Allowed
Blocked
Allowed
Allowed
Perplexity-User
Allowed
Blocked
Allowed
Allowed
CCBot
Allowed
Blocked
Allowed
Allowed
Bytespider
Allowed
Blocked
Allowed
Allowed
meta-externalagent
Allowed
Blocked
Allowed
Allowed
meta-webindexer
Allowed
Blocked
Allowed
Allowed
meta-externalfetcher
Allowed
Blocked
Allowed
Allowed
Amazonbot
Allowed
Blocked
Allowed
Allowed
Amzn-SearchBot
Allowed
Blocked
Allowed
Allowed
Amzn-User
Allowed
Blocked
Allowed
Allowed
Checks
Line 5: Groups for specific bots do not inherit the rules of User-agent: *. If a bot should also follow the * rules, repeat them in its group.
robots.txt controls crawling, not indexing. Google warns it may index a blocked URL if other sites link to it (without a description). To keep a page out of results, use noindex on a crawlable page.