robots.txt generator with AI bot controls
Choose which AI bots may read your site: stay in ChatGPT, Claude and Perplexity answers while keeping your content out of model training, or any mix you want. Google stays allowed.

Three kinds of AI bots, three choices
AI companies now run separate bots for separate jobs, so you no longer have to choose between "all AI" and "no AI":
| Kind | Bots | What blocking it means |
|---|---|---|
| AI search | OAI-SearchBot, Claude-SearchBot, PerplexityBot, Amazonbot | Your pages can stop appearing as sources in ChatGPT search, Claude and Perplexity answers |
| Visits for a user | ChatGPT-User, Claude-User, Perplexity-User | The assistant cannot open your page when someone pastes your link or asks it to |
| Model training | GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBot, Bytespider, meta-externalagent | Your content is not used to train future AI models. Search visibility is not affected |
In our study of the top 10,000 websites, 10.6% block GPTBot (OpenAI training) while letting Google in, but only 3.8% block OAI-SearchBot, the bot ChatGPT uses to cite pages. Most sites want to be cited, even when they refuse training.
How to use it
- Pick a starting point. Allow AI search, block training suits most businesses and blogs.
- Add your domain so the sitemap line is filled in, and any folders no bot should crawl, such as
/admin/or/cart/. - Tick or untick single bots. The table above the file shows, for every bot, whether it may read your home page.
- Copy or download the file and upload it to the root of your site. Then test it with the AI bots checker or a single URL in the robots.txt tester.
Things to know
- Googlebot and Bingbot are never blocked by the AI presets. Blocking them removes your site from Google and Bing search, including AI Overviews and Copilot.
- robots.txt is not a security tool. Pages you block can still be visited by anyone with the link. Use a password or noindex for private pages.
- A blocked page can still appear in Google if other sites link to it, without a description. To keep a page out of search, allow crawling and add
noindex. - Pair it with llms.txt to point AI assistants to your best pages: try the free llms.txt generator.
Frequently asked questions
How do I block AI training but stay in ChatGPT and Perplexity answers?
Block the training bots (GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBot and others) and allow the search and user bots (OAI-SearchBot, ChatGPT-User, Claude-SearchBot, Claude-User, PerplexityBot, Perplexity-User). The "Allow AI search, block training" preset does exactly that.
Does blocking Google-Extended remove my site from Google Search?
No. Google-Extended only controls whether Google may use your pages for Gemini. Googlebot, which ranks your site in Search and AI Overviews, is a separate bot and stays allowed.
Do all bots obey robots.txt?
The large search and AI companies say their bots follow it. robots.txt is a request, not a lock: a bot that ignores it can only be stopped at the server or firewall, for example with Cloudflare's bot rules.
Where does the robots.txt file go?
At the root of your domain, for example https://example.com/robots.txt. Each subdomain needs its own file.