robots.txt Generator: Block AI Crawlers & Bots
Free robots.txt generator. Add per-bot rules, block AI crawlers like GPTBot and CCBot, hide admin pages, add your sitemap and download the file.
How to use it
- Choose whether all crawlers may crawl everything by default.
- Use a preset, such as blocking AI crawlers or admin pages, or add your own rules for any user-agent and path.
- Add your sitemap URL and, if you need it, a crawl-delay for Bing and other engines.
- Copy or download the file and upload it to the root of your domain as robots.txt.
What robots.txt can and can't do
robots.txt asks crawlers which parts of a site not to fetch. Reputable search engines and many AI crawlers follow it, but it is a request, not a lock: anyone can still open those addresses, and the file itself is public. Never list secret areas in it; protect them with a login instead.
Blocking a page in robots.txt doesn't reliably keep it out of search results. If other sites link to it, a search engine can list the address without having read the page. To keep a page out of results, let it be crawled and add a noindex meta tag, because a crawler has to read the page to see that tag.
Rules that are often misunderstood
Rules are matched by the start of the path, so Disallow: /admin also blocks /administrator. Each crawler follows the most specific group that names it and ignores the general * group, so repeat any rules you want it to keep. Google ignores Crawl-delay. The file must live at the root of the domain, such as example.com/robots.txt, and each subdomain needs its own.
Questions people ask
Does robots.txt stop a page from appearing in Google?
Not reliably. robots.txt stops crawling, not indexing: a blocked URL can still appear in results if other sites link to it. To keep a page out of search, allow crawling and add a noindex meta tag or X-Robots-Tag header instead.
Will blocking GPTBot and other AI crawlers protect my content?
It's a request, not enforcement. OpenAI, Google, Apple, Common Crawl and other reputable operators say they honour robots.txt, but a crawler can ignore it, and it doesn't remove content that was already collected. Blocking Google-Extended doesn't affect your Google Search ranking.
Does Google support Crawl-delay?
No. Googlebot ignores Crawl-delay and adjusts its speed automatically based on how your server responds. Bing, Yandex and some others do respect it.
Where do I put robots.txt?
At the root of the host, so it's reachable at https://yourdomain.com/robots.txt. A file in a subfolder is ignored, and each subdomain (like shop.yourdomain.com) needs its own.
What happens if a crawler has its own group?
A crawler follows only the most specific group that names it and ignores the * group. So if you add rules for Googlebot, repeat any general rules there that Googlebot should also follow.
