Free tool · no signup
robots.txt generator
Build a correct robots.txt in seconds. It lets Google, Bing and AI search crawlers read your site, keeps private folders out of search, lists your sitemap, and lets you decide whether AI companies may train on your content.
# robots.txt generated with care for search engines and AI assistants
User-agent: *
Disallow: /admin/
Disallow: /cart/
Disallow: /checkout/
# AI search crawlers: let them read and cite your pages
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: PerplexityBot
User-agent: Claude-SearchBot
Allow: /
Sitemap: https://example.com/sitemap.xml
How to use the generated file
- Fill in your domain and the folders you want to keep out of search.
- Choose how to treat AI search and AI training crawlers.
- Download robots.txt and upload it to the root of your site so it loads at yourdomain.com/robots.txt.
- Test it with the robots.txt checker and the AI crawler checker.
Should you allow AI crawlers?
For most businesses, yes, at least the search crawlers. ChatGPT, Perplexity and Claude can only cite pages their crawlers are allowed to read. Ahrefs found AI search visitors converted 23 times better than regular organic visitors on their site.
Training crawlers are a separate choice. Allowing them means your content may help train future models; blocking them doesn't affect today's AI search results.
What not to block
Don't block your CSS, JavaScript or image folders, Google needs them to render your pages. And don't use robots.txt to remove pages from Google: a blocked page can still be indexed from links. Use a noindex tag instead.
FAQ
Frequently asked questions
Where do I upload robots.txt?
To the root folder of your website, so it loads at https://yourdomain.com/robots.txt. On WordPress you can edit it in Yoast (Tools → File editor) or Rank Math (General Settings → Edit robots.txt).
Does Shopify let me edit robots.txt?
Yes, through a robots.txt.liquid template in your theme code. Shopify's default file is already sensible, so only add the AI crawler rules you need.
What does Disallow: / mean?
It blocks the whole site for the crawlers in that group. Under User-agent: * it blocks every crawler, a common accident when a site goes live from a staging server.
Is blocking AI training crawlers bad for SEO?
No. Training crawlers don't affect Google rankings or live AI search. The trade-off is long-term: brands mentioned widely in training data may be recommended more by future models.