Make a robots.txt file and decide which bots get in.
Pick a starting point, add your sitemap, choose which paths and AI crawlers to keep out, then test any page against the result. The file is made in your browser and nothing is uploaded.
- Free, no sign-up
- Made in your browser
- Test any URL
Start from
Your site
Rules for all crawlers
Paths to keep crawlers out of, and exceptions inside them. Leave empty to allow everything.
Bing and some others honour crawl-delay. Google ignores it.
AI crawlers
Choose what to keep out. These are requests: well-behaved bots follow them, others may not.
Choose crawlers one by one
Blocking these can remove your pages from AI answers and citations.
Save it as robots.txt in the root of your site, so it opens at https://example.com/robots.txt.
Test a robots.txt you already have
While this box has text, the test above checks your pasted file instead of the one made here.
How to create a robots.txt file
Pick a starting point
Choose Allow everything, a CMS preset or Block everything, then add your site address and sitemap.
Set the rules and the bots
List paths to keep crawlers out of, and tick the AI crawlers you want to block. Read the checks for mistakes.
Test, then upload
Try a few pages in the tester. Download the file and put it at the root of your site, at /robots.txt.
A robots.txt file tells crawlers which parts of a site they may fetch. Search engines read it before they crawl, and a growing number of AI companies publish crawler names you can allow or block in the same file. This generator writes the file for you, explains the risky choices, and lets you test a page against it before you upload anything.
What it does
- Starts from sensible presets for WordPress, Shopify and online stores, or from allow-all or block-all.
- Blocks AI training and data collection crawlers such as GPTBot, ClaudeBot, Google-Extended, CCBot and Applebot-Extended in one click, or one by one.
- Keeps AI search and assistant bots in their own list, so you can stay visible in AI answers while opting out of training.
- Adds Sitemap lines and an optional crawl-delay.
- Tests any path against the file for Googlebot, Bingbot, GPTBot and others, using the matching rules in the robots.txt standard, and tells you which line decided the answer.
- Warns about mistakes that cost traffic: blocking the whole site, blocking CSS and JavaScript, or relative sitemap addresses.
Limits, honestly
- robots.txt is a request, not a lock. Compliant crawlers follow it. A bot that ignores it can still fetch your pages, so protect private content with a login.
- Blocking a page in robots.txt stops crawling, not indexing. A blocked page can still appear in search results if other sites link to it. Use a noindex tag on a crawlable page to keep it out.
- Crawler names change. The AI bot list reflects names that are published today, so check each company’s documentation from time to time.
- Google ignores crawl-delay. It is honoured by Bing and some other crawlers.
- Shopify builds its own robots.txt from a theme template. The preset here is a starting point for that template, not a replacement.
Robots.txt Generator: questions and answers
What is a robots.txt file?
How do I block AI crawlers like GPTBot and ClaudeBot?
Will blocking AI bots hurt my SEO?
Where do I put the robots.txt file?
Does Disallow remove a page from Google?
What does User-agent: * mean?
Should I add my sitemap to robots.txt?
Is my data sent anywhere?
Can I test the robots.txt I already have?
More free tools
Need a custom tool, site or store?
I scope, design and build tools, websites and Shopify stores for teams in India and abroad. Send a short brief and I will reply within 48 hours.