Free AI robots.txt generator: block training, keep search
By Omar AlDabbas, co-founder of xfixLast updated:
Paste your site and we read your current robots.txt, keep every rule you already have, and add rules for AI bots by job: search bots that put you in AI answers, fetchers that open a page when someone asks, and training crawlers. Then test the draft before you upload it.
How this AI robots.txt generator works
What it checks
It reads your current robots.txt and keeps every line of it. It then adds a group for each AI bot by its job: search crawlers, user fetchers, training crawlers and control tokens, from 14 bots run by OpenAI, Anthropic, Perplexity, Apple, Google, Meta, Common Crawl and ByteDance. If your file already has a group for a bot, it edits that group instead of adding a second one. Because a bot named in its own group ignores the * group, it copies your * Disallow lines into each allowed AI group. Googlebot and Bingbot are left alone: they are the general search crawlers.
How to use it
- Paste your site's address and press "Generate robots.txt".
- Pick a policy: block training and allow search (the default), allow all AI bots, or block all AI bots. Change single bots under "Per bot".
- Read what changed, then press "Test this draft" to see how the 9 search and AI search bots read it.
- Copy or download the file, upload it, then check the live file with the AI crawler checker.
What the result means
- Your robots.txt draft: your file as it was, plus one block of AI groups dated today. Edit it in the box if you want.
- What changed: every line added or removed. Removed lines are the AI bots taken out of a shared group so they can get the rules you picked.
- The draft test: the AI crawler checker's own table for the draft text: which of the 9 bots may fetch your page and which rule decides it.
- Starts from an empty file: your site has no robots.txt, or it could not be read. Add any private paths of your own before you upload it.
Example
On 16 October 2026 we ran it on https://xfix.ai/ with the default policy. Its robots.txt has a * group with 20 Disallow lines, one group that allowed 15 AI bots, and one that blocks 5 scrapers. The draft kept every line except 6: GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBot and meta-externalagent left the allowed group and were blocked in the new block, with Bytespider still blocked where it was. Applebot, which had no group, was allowed with the 20 Disallow lines copied in. The draft test showed all 9 search and AI search bots allowed on /.
Limits
- robots.txt is a request, not a lock: it does not stop a bot that ignores it.
- CDN and firewall rules can block bots that robots.txt allows, and this tool cannot see them.
- The bot list is as of the "Checked on" date of the AI crawler list guide (11 October 2026).
- Nothing is uploaded or saved for you: you add the file to your site yourself.
Where to put the file
- Any site: upload it to the root so it opens at /robots.txt.
- Shopify: edit robots.txt.liquid in the theme (Online Store > Themes > Edit code).
- WordPress and WooCommerce: WordPress serves a virtual robots.txt; a physical file at the root replaces it, and SEO plugins can also edit it.
- Behind a CDN: some CDNs add their own robots.txt rules, so open the live file after upload and check it.
See the data: Is robots.txt hiding your store from AI? We checked 8,984 stores
Questions
Should I block AI crawlers?
Block training crawlers if you do not want your content used to train models. Keep search bots and user fetchers allowed if you want to appear in AI answers.
If I block GPTBot, will I disappear from ChatGPT?
Not by itself. GPTBot collects training data. ChatGPT search uses OAI-SearchBot, and pages opened at a user's request use ChatGPT-User.
Why did you copy my Disallow lines into the AI groups?
A bot that has its own group ignores the * group. Without the copy, the private paths you blocked for everyone would be open to that bot.
Does robots.txt stop a bot?
It is a request. The major AI companies say their crawlers follow it, but only a firewall rule blocks a bot technically.