Robots.txt generator to guide search engine crawlers.
Build a valid robots.txt in seconds: allow or block crawlers, add your sitemap and opt out of AI crawlers.
What each crawler does
- GPTBot · OpenAI
- Crawls content that may be used to train OpenAI's models.
- OAI-SearchBot · OpenAI
- Finds pages to show in ChatGPT search. Blocking it can keep you out of those answers.
- ClaudeBot · Anthropic
- Crawls content that may be used to train Anthropic's models.
- Google-Extended · Google
- Controls whether Google may use your content for Gemini AI training. It does not affect Google Search.
- Applebot-Extended · Apple
- Controls whether Apple may use your content to train its AI models. It does not stop Applebot from crawling.
- CCBot · Common Crawl
- Builds the open Common Crawl web archive, a common source of AI training data.
- PerplexityBot · Perplexity
- Indexes pages for Perplexity's AI search answers.
- Meta-ExternalAgent · Meta
- Crawls content for uses such as training Meta's AI models.
Blocking Google-Extended does not remove you from Google Search. Well-behaved crawlers follow robots.txt, but it can't force any bot to comply.
One per line. Optional, but recommended.
Seconds. Google ignores it.
User-agent: *
Allow: /
Save it as plain text named robots.txt at the root of your domain, so it loads at https://yourdomain.com/robots.txt.
Free and private: this tool runs entirely in your browser.Want more organic traffic? Talk to TechnoHelp
How to use the robots.txt generator
Pick a starting point
Choose Allow all, Block all or WordPress. Each fills in the rules, which you can then edit freely.
Add your rules
Add Disallow rules for areas crawlers don't need, such as admin, cart or internal search pages. Use Quick add for common paths, and add a group for any crawler that needs different rules.
Choose AI crawlers to block
Turn on the AI crawlers you want to opt out of. Each one shows who runs it and what it does.
Add your sitemap
Paste the full URL of your XML sitemap. The checker flags relative URLs and paths that don't start with / or *.
Copy or download
Copy the text or download robots.txt, then upload it to the root of your site and open yourdomain.com/robots.txt to check it.
robots.txt syntax at a glance.
- User-agent: *
- Starts a group of rules. * means every crawler; a name like Googlebot targets one.
- Disallow: /admin/
- Asks crawlers not to crawl URLs whose path starts with /admin/.
- Allow: /admin/help/
- Makes an exception inside a disallowed folder.
- Sitemap: https://…
- Points crawlers to your XML sitemap. Must be a full URL. You can list several.
- Crawl-delay: 10
- Asks for a pause between requests. Google ignores it; some other crawlers read it.
- # comment
- Everything after # on a line is ignored.
What a path matches
Rules match from the start of the URL path. Google and other major crawlers support * (any characters) and $ (end of URL).
| Rule path | Matches |
|---|---|
| / | Every URL on the site |
| /admin/ | /admin/, /admin/users, /admin/a/b |
| /search | /search, /search?q=shoes, /searching |
| /*.pdf$ | Any URL ending in .pdf ($ marks the end) |
| /*?* | Any URL with a query string |
| /Private/ | /Private/ but not /private/ (paths are case-sensitive) |
When Allow and Disallow rules both match a URL, Google uses the most specific (longest) rule, and the less restrictive one if they tie. See how Google interprets robots.txt for the full rules.
How crawlers pick which rules apply.
A crawler follows only the one group that matches its name most specifically, and ignores the rest.
User-agent: * Disallow: /admin/ User-agent: Googlebot Disallow: /drafts/
Here Googlebot follows only its own group, so it may crawl /admin/. To keep it out of both folders, repeat Disallow: /admin/ in the Googlebot group. Crawler names are not case-sensitive, but paths are. That's also why the AI crawler group this tool adds only affects the crawlers it names.
What robots.txt can't do.
It doesn't keep pages out of search results
A blocked page can still be indexed, without a description, if other sites link to it. To keep a page out of Google, let it be crawled and add a noindex rule, or put it behind a login.
It isn't a security tool
Anyone can read your robots.txt, so listing a secret folder there advertises it. Protect private areas with authentication.
It's a request, not a lock
Google, Bing and other reputable crawlers follow it. Scrapers and malicious bots can ignore it.
It only covers its own host
example.com/robots.txt doesn't apply to shop.example.com or to a different protocol or port. Each host needs its own file.
Blocking CSS and JavaScript can hurt
Google renders pages like a browser. If it can't fetch the files a page needs, it may not understand the page correctly.
Google's introduction to robots.txt explains what the file is for, and its guide to blocking indexing with noindex covers keeping pages out of results.
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 crawl. It is mainly used to keep crawlers away from pages that don't need crawling, such as admin areas, carts and internal search results, and to point them to your sitemap.
Where do I put my robots.txt file?
At the root of your host, so it loads at https://www.example.com/robots.txt. Crawlers don't look for it in subfolders. Each subdomain, and each protocol or port, needs its own file.
Does robots.txt stop a page from appearing in Google?
No. robots.txt controls crawling, not indexing. A blocked URL can still appear in results if other pages link to it. To keep a page out of Google, add a noindex meta tag or header and make sure the page is not blocked in robots.txt, so Google can see the noindex.
How do I block AI crawlers like GPTBot and ClaudeBot?
Add a group naming each crawler's user-agent token, followed by Disallow: /. For example, GPTBot for OpenAI, ClaudeBot for Anthropic and CCBot for Common Crawl. Google-Extended controls whether Google may use your content for Gemini training without affecting Google Search. Reputable AI companies say their crawlers follow robots.txt, but it can't force a bot to comply.
Is robots.txt case-sensitive?
The paths in Allow and Disallow rules are case-sensitive, so Disallow: /Private/ does not block /private/. Google matches user-agent names without regard to case, and the file itself must be named robots.txt in lowercase.
Does Google support Crawl-delay?
No. Google ignores the Crawl-delay line and adjusts its crawl rate automatically based on how your server responds. Some other crawlers do read it, so it can still be worth setting if a particular bot is overloading your server.
What happens if my site has no robots.txt?
Crawlers assume they may crawl everything. Google treats a missing robots.txt (a 404 response) the same as a file with no restrictions, which is fine for many small sites.
How do I test my robots.txt?
Open yourdomain.com/robots.txt in a browser to confirm it is live and correct. In Google Search Console, the robots.txt report shows which robots.txt files Google found for your site, when it last fetched them, and any problems it had parsing them.
From the team behind these tools
Crawling is step one. We handle the rest of technical SEO.
TechnoHelp is an independent web design and development studio. We fix crawl and indexing issues, site speed and structure, so search engines can find and rank your best pages.