robots.txt generator
Create a robots.txt file with presets for common sites, one-click controls for 15 AI crawlers and your sitemap. Then test any URL against the rules before you upload.
What does the robots.txt generator do?
The robots.txt generator writes a valid robots.txt file from simple settings: a starting preset, paths to block or allow, rules for AI crawlers from OpenAI, Anthropic, Perplexity, Google, Apple and others, custom rules and sitemap lines. A built-in tester shows whether any crawler can reach any URL, using Google’s matching rules.
It covers 15 AI crawlers from 10 companies, offers 5 starting presets, and tests URLs using the matching rules in RFC 9309, the robots.txt standard published in 2022.
Based on: RFC 9309: Robots Exclusion Protocol · Google: Introduction to robots.txt · OpenAI crawlers
How do you create a robots.txt file?
Pick a starting point
Choose a preset close to your site, or load your current file to test and edit it.
Set AI crawler rules
Allow, block or leave each AI crawler on your default rules. Use the quick buttons for common choices.
Test URLs
Check that important pages are allowed and private ones are blocked for the crawlers you care about.
Upload
Download robots.txt, upload it to your site root and check it loads at yoursite.com/robots.txt.
Which AI crawlers can you control with robots.txt?
AI companies run separate crawlers for model training, AI search and user-requested fetches, so you can treat them differently.
- Model trainingGPTBot (OpenAI), ClaudeBot (Anthropic), Google-Extended (Gemini), Applebot-Extended, Meta-ExternalAgent, CCBot (Common Crawl), Bytespider (ByteDance).
- AI searchOAI-SearchBot (ChatGPT search), Claude-SearchBot, PerplexityBot, DuckAssistBot, Amazonbot. Blocking these can keep you out of AI answers.
- User-triggeredChatGPT-User, Claude-User and Perplexity-User fetch a page when someone asks about it. Not all of them follow robots.txt in every case.
robots.txt generator: frequently asked questions
What is a robots.txt file?
robots.txt is a plain text file at the root of a website that tells crawlers which URLs they may and may not request. It follows the Robots Exclusion Protocol, standardised as RFC 9309 in 2022.
Does robots.txt stop a page from appearing in Google?
No. Blocking a URL stops Google from crawling it, but the URL can still be indexed if other sites link to it. To keep a page out of search results, allow crawling and add a noindex meta tag or X-Robots-Tag header.
Should I block AI crawlers?
It depends on your goals. Blocking training crawlers such as GPTBot, ClaudeBot or Google-Extended limits use of your content for model training. Blocking AI search crawlers such as OAI-SearchBot, Claude-SearchBot or PerplexityBot can stop your pages from being cited in AI answers. Many businesses allow search crawlers and decide case by case on training.
How does Google pick which rule applies?
Google uses the group for the most specific user-agent that matches, then the most specific (longest) matching path. If an Allow and a Disallow rule are equally long, Allow wins. The tester on this page uses the same logic.
Where do I put robots.txt?
At the root of the host it controls, such as https://example.com/robots.txt. Each subdomain and protocol needs its own file. Google reads up to 500 KB of it.
Should I block CSS and JavaScript?
No. Google needs your CSS and JavaScript files to render pages properly. Blocking them can hurt how your pages are understood and ranked. The generator warns you if your rules do this.