Robots.txt Generator
Build a robots.txt with crawler rules, AI-bot blocking and sitemaps, then test any URL against it.
RulesWhich paths each crawler may visit
Group 1
* means every crawler. Separate several names with commas.
Ignored by Google; Bing uses it.
Paths to keep out, one per line.
Paths inside a blocked folder that may be crawled.
AI crawlersAsk AI companies' crawlers to stay out of the whole site
Model training
AI search
Fetches when a user asks (may ignore robots.txt)
Well-known AI companies say their crawlers follow these rules, but obeying robots.txt is voluntary.
Sitemaps
Full addresses, one per line. Crawlers read every Sitemap line.
robots.txt
User-agent: * Disallow: /admin/ Disallow: /cart/
No problems found
Upload it as robots.txt at the root of your site, for example https://www.example.com/robots.txt.
Test a URLChecks the rules above the way crawlers do
Disallow: /admin/ is the longest matching rule. Googlebot has no group of its own, so it follows the * group.Robots.txt Generator FAQ
How do I block AI bots like ChatGPT in robots.txt?
Choose Block AI training to add GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, Meta-ExternalAgent, CCBot, Bytespider and Amazonbot, each with Disallow: /. Block all AI also adds AI search crawlers such as OAI-SearchBot and PerplexityBot, which removes your pages from those AI search answers.
Does blocking Google-Extended remove my site from Google Search?
No. Google-Extended only controls whether Google may use your pages for Gemini. Google Search uses Googlebot, which follows your other rules.
Where do I put the robots.txt file?
In the top folder of your website, so it opens at https://yourdomain/robots.txt. Each subdomain, such as shop.example.com, needs its own file.
What is the difference between Disallow and noindex?
Disallow in robots.txt asks crawlers not to fetch a page. A noindex meta tag tells search engines not to show a page, and they must be able to crawl the page to see it, so do not block a page you want removed with noindex.
Why does an empty group get "Disallow:"?
A group needs at least one rule. Without it, crawlers join the user-agent line to the next group and follow that group's rules, which could block your whole site. An empty Disallow means everything is allowed.
Is my robots.txt sent anywhere?
No. The file is built and tested in your browser, and nothing is uploaded until you put it on your own site.