Free tool
robots.txt generator for AI crawlers
The AI robots.txt generator builds a robots.txt with a rule for each AI crawler: GPTBot, ClaudeBot, PerplexityBot, Google-Extended and the rest. It starts by allowing the crawlers that can put you in an answer and blocking the ones with no documented answer use; change any of them, then copy the file. Free, no sign-up.
- User-agent: GPTBotAllow: /Disallow: /api/Trainingthe default blocks it
- 18 more groups, PerplexityBot among them
- User-agent: Google-ExtendedAllow: /Disallow: /api/Groundingsame as the default
- 10 more groups
- User-agent: CCBotDisallow: /Trainingsame as the default
- AhrefsBot, SemrushBot and *
- Sitemap: https://attensira.com/sitemap-index.xmlSitemapdeclared
7 days free · card required
Build your file
In your browser · Free, no sign-uprobots.txt
# robots.txt built with https://attensira.com/tools/robots-generator # OpenAI, no answer use documented User-agent: GPTBot Disallow: / # OpenAI, can put you in an answer User-agent: OAI-SearchBot Allow: / # OpenAI, can put you in an answer User-agent: ChatGPT-User Allow: / # Anthropic, no answer use documented User-agent: ClaudeBot Disallow: / # Anthropic, can put you in an answer User-agent: Claude-SearchBot Allow: / # Anthropic, can put you in an answer User-agent: Claude-User Allow: / # Perplexity, can put you in an answer User-agent: PerplexityBot Allow: / # Perplexity, can put you in an answer User-agent: Perplexity-User Allow: / # Google, can put you in an answer User-agent: Google-Extended Allow: / # Google, can put you in an answer User-agent: Googlebot Allow: / # Microsoft, can put you in an answer User-agent: Bingbot Allow: / # Apple, can put you in an answer User-agent: Applebot Allow: / # Apple, no answer use documented User-agent: Applebot-Extended Disallow: / # Meta, no answer use documented User-agent: meta-externalagent Disallow: / # Meta, can put you in an answer User-agent: meta-webindexer Allow: / # Amazon, no answer use documented User-agent: Amazonbot Disallow: / # Amazon, can put you in an answer User-agent: Amzn-SearchBot Allow: / # Mistral AI, can put you in an answer User-agent: MistralAI-Index Allow: / # ByteDance, no answer use documented User-agent: Bytespider Disallow: / # Common Crawl, no answer use documented User-agent: CCBot Disallow: / # Every other crawler User-agent: * Allow: /
Save it as robots.txt at the root of your domain, then open /robots.txt in a browser to check it is served as plain text.
- User-agent: GPTBotAllow: /Disallow: /api/Trainingthe default blocks it
- 18 more groups, PerplexityBot among them
- User-agent: Google-ExtendedAllow: /Disallow: /api/Groundingsame as the default
- 10 more groups
- User-agent: CCBotDisallow: /Trainingsame as the default
- AhrefsBot, SemrushBot and *
- Sitemap: https://attensira.com/sitemap-index.xmlSitemapdeclared
What goes in the file?
One group per documented crawler
Each crawler whose operator documents its token gets one Allow: / or Disallow: /, which you choose.
A comment on every group
One line: the operator, and whether the crawler can put you in an answer, so every group in the file can be explained.
The catch-all, your sitemap and your rules
User-agent: * allows everything else; your Sitemap: line and your own rules go at the end.
What does our own robots.txt allow?
Our live attensira.com/robots.txt, read on 4 October 2026, against what this generator writes by default.
We allow GPTBot and ClaudeBot, which OpenAI and Anthropic document as training crawlers. This generator's defaults would block both, because training does not put you in today's answer. Google-Extended is allowed in our file and by the default, because Google documents it as governing grounding in Gemini Apps too. Our file still blocks CCBot, so it is a choice, not a blanket allow.
That is the point of the toggles. The defaults keep every crawler that can put you in an answer and drop the ones with no documented answer use; the right file is the one whose every line you can explain.
The file is the excerpt at the top of this page. Read on 4 Oct 2026.
What does the generator write?
One group per crawler, for the 20 crawlers whose operators document their user-agent token: 13 that can put a page in an answer (search indexes, on-demand fetchers and grounding controls) and 7 with no documented answer use. Each group is a single Allow: / or Disallow: /, with a one-line comment naming the operator and whether the crawler can put you in an answer. A catch-all User-agent: * group allows everything else, and your sitemap line and your own rules go at the end.
Nothing is invented. A token that no operator documents is not on the list, because a rule for a crawler that does not exist does nothing and makes the file harder to read. Every description in the list above links to the operator's own page, all read on 4 October 2026.
Which crawlers should you allow?
The ones that can put you in an answer, almost always. Blocking OAI-SearchBot, Claude-SearchBot or PerplexityBot removes your pages from the index those assistants search, so they can no longer cite you. The same holds for meta-webindexer (Meta AI), MistralAI-Index (Mistral) and Amzn-SearchBot (Amazon's search experiences). The on-demand fetchers (ChatGPT-User, Claude-User, Perplexity-User) visit a page because a person asked for it.
The training crawlers are a real choice. Blocking GPTBot, ClaudeBot or Amazonbot keeps your pages out of future training sets; it does not remove you from today's answers, because each of those operators documents a separate search token. Some publishers block training to protect their content. Others allow it so future models know them. The default here blocks training; our own site allows it, and the example above shows the file.
Google-Extended is not a training-only switch. Google documents it as governing both Gemini training and grounding in Gemini Apps and Vertex AI, so blocking it can keep you out of those answers. It does not affect Google Search or AI Overviews. The default allows it.
robots.txt is a request, not a lock. Documented crawlers honor it; anything that ignores it has to be stopped at your server or CDN.
Who keeps the file right after today?
Inside Attensira, a robots change reaches your repository as a pull request for you to review. Merging it is your call. GitHub delivery.
robots.txt: one rule per documented AI crawler
attensirawaits for your review
public/robots.txt
- unchanged: # OpenAI: the search index behind ChatGPT search
- unchanged: User-agent: OAI-SearchBot
- unchanged: Allow: /
- added: # Anthropic: training crawler
- added: User-agent: ClaudeBot
- added: Disallow: /
Web engineer · would hand you a pull request like thisExample · the kind of change this finding calls for, not one that shippedHow do you put the file live?
- Copy the file and save it as
robots.txtat the root of your domain:https://example.com/robots.txt. One file per host; a subdomain needs its own. - Open it in a browser. It must load as plain text with a 200 status. A 404 means every crawler is allowed everywhere; an HTML page in its place means the file was never deployed.
- Run the crawler URL inspector on a page you care about, to confirm each crawler gets the verdict you meant and a real response.
- Merge, do not overwrite. If your current file carries rules for paths (an admin area, a staging folder), keep them in the “your own rules” box.
Questions people ask about AI crawlers and robots.txt
If I block GPTBot, will ChatGPT stop citing me?
Not by itself. OpenAI documents GPTBot as its training crawler and OAI-SearchBot as the one behind ChatGPT search. Blocking GPTBot keeps your pages out of training; blocking OAI-SearchBot is what removes them from search answers.
What is Google-Extended?
A control token, not a separate crawler. Googlebot does the fetching; a Google-Extended rule tells Google whether those pages may be used to train Gemini models and to ground answers in Gemini Apps and Vertex AI. Blocking it does not affect Google Search, according to Google's crawler documentation (read 4 October 2026).
Why is there no rule for Claude-Web or anthropic-ai?
Because Anthropic does not document them as current tokens. The generator only writes rules for crawlers whose operators document them, so the file does not fill up with rules for crawlers that do not exist.
How long until a change takes effect?
Crawlers re-read robots.txt on their own schedule. Google says it generally caches the file for up to 24 hours, and longer when it cannot refresh it; see how Google interprets robots.txt (read 4 October 2026).
Does this tool store anything?
No. The file is built in your browser as you tick the boxes. Nothing is sent to us.
This writes the file. Attensira's crew keeps it right.
7 days free · card required