
Robots.txt Generator With AI Crawler Rules
Create a correct robots.txt in seconds: keep private paths out of crawlers, add your sitemap and decide how GPTBot, ClaudeBot, Perplexity and other AI bots may use your site.
"Block AI training only" keeps ChatGPT search, Claude search and Perplexity able to cite you. Googlebot and Bingbot are never blocked by these options.
User-agent: * Disallow: /admin/ Disallow: /cart/ Disallow: /checkout/ Disallow: /search? Sitemap: https://www.example.com/sitemap.xml
Upload it to your site root so it opens at /robots.txt, then check it with the AI Crawler Checker. robots.txt controls crawling, not indexing: to keep a page out of Google, use a noindex tag and leave the page crawlable.
Three Mistakes That Cost Rankings
A robots.txt file is short, but one wrong line can hide an entire site from search.
Create Your robots.txt in 4 Steps
- 1
List what crawlers should skip
Admin areas, carts, checkout, internal search results and filter URLs that create endless combinations.
- 2
Choose your AI crawler policy
Allow all, block training only, or block every AI bot. The tool never blocks Googlebot or Bingbot with these options.
- 3
Add your sitemap
Use the full https:// address of your XML sitemap so every crawler can find all your pages.
- 4
Upload and verify
Upload the file to your site root, then test it with our AI Crawler Checker and Google Search Console's robots.txt report.
Robots.txt: Frequently Asked Questions
What is a robots.txt file?
A plain-text file at the root of your site (yourdomain.com/robots.txt) that tells crawlers which paths they may fetch. It follows the Robots Exclusion Protocol, standardised as RFC 9309 in 2022. Well-behaved crawlers read it before crawling your site.
Does robots.txt stop a page appearing in Google?
Not reliably. robots.txt controls crawling, not indexing. Google says a blocked URL can still be indexed without its content if other pages link to it. To keep a page out of search results, allow crawling and add a noindex meta tag or header instead.
Should I block AI crawlers?
It depends on your goal. Blocking training crawlers such as GPTBot, ClaudeBot and CCBot keeps your content out of future model training. Blocking search crawlers such as OAI-SearchBot, Claude-SearchBot and PerplexityBot also stops those assistants citing your pages. Most businesses that want leads block training at most and allow search crawlers.
Does Google support Crawl-delay or noindex in robots.txt?
No. Googlebot ignores the Crawl-delay line, and Google stopped supporting noindex rules inside robots.txt in 2019. Use a noindex meta tag for indexing control.
Should I block CSS and JavaScript files?
No. Google needs CSS and JavaScript to render your pages the way visitors see them. Blocking them can hurt how your pages are understood and ranked.
Where do I put the robots.txt file?
In the root of each host, so it opens at https://www.yourdomain.com/robots.txt. A robots.txt on one subdomain does not apply to another. Google reads up to 500 KiB of the file.
More Free Tools From Brainguru
All free, no sign-up, and they run in your browser.
Want help with this?
Talk to our team about the Robots.txt Generator.