Robots.txt Generator
Tell search engines and AI crawlers what they can and can't visit. Start from a preset, choose which bots to allow, test any URL, then download your file. Everything runs in your browser.
- 6 presets
- 24 named crawlers
- AI training vs AI search
- Live URL tester
Test a URL
Upload the file to your site root so it opens at https://yourdomain.com/robots.txt. Then check it in Google Search Console under Settings › robots.txt.
Robots.txt in plain English
- User-agent names the crawler a group of rules is for.
*means every crawler. - Disallow blocks a path.
Disallow: /blocks the whole site. - Allow opens a path inside a blocked folder. The longest matching rule wins.
- * matches any characters and $ marks the end of a URL, e.g.
/*.pdf$. - Sitemap points crawlers to your list of pages. Use the full URL.
Frequently asked questions
Where do I put robots.txt?
Upload it to the root of your domain so it opens at https://yourdomain.com/robots.txt. Each subdomain needs its own file.
Does robots.txt hide pages from Google?
No. It stops crawling, not indexing. A blocked page can still appear in results if other sites link to it. To keep a page out of search, use a noindex tag or password protection, and don't block it in robots.txt.
Should I block AI crawlers?
It depends on your goals. Blocking AI training crawlers like GPTBot and Google-Extended keeps your content out of future model training. Blocking AI search crawlers like OAI-SearchBot and PerplexityBot can stop you appearing in AI answers. Many businesses block training but allow search.
Does Google follow Crawl-delay?
No. Google ignores Crawl-delay. Bing and some other crawlers respect it.
Not sure what to block? Our technical SEO team can help.