Robots.txt Builder
Build precise robots.txt directives that tell search engines and AI bots what to crawl on your site
Optimize Your SEO: Generate a Professional Robots.txt
Google's crawlers download and parse a site's Robots.txt file before crawling the site. The file acts as a gatekeeper for compliant bots, guiding them away from private or resource-heavy directories and toward your most important content.
How to Use
- Set Rules: Choose a bot, an action, and a path.
- Add to List: Click “Add Rule” to stack instructions.
- Platform Presets: Use “SEO Health Check” for quick setups.
- Export: Download the
.txtor copy the code.
Pro Tips
- Don’t hide CSS/JS: Google needs these to render your site.
- Sitemaps: Add your Sitemap URL at the very end.
- Wildcards: Use
*to apply a rule to every bot. - AI Bots: The AI preset disallows seven tokens: the training crawlers GPTBot, ClaudeBot, Meta-ExternalAgent, plus Amazonbot, the control tokens Google-Extended plus Applebot-Extended, then CCBot, the crawler for Common Crawl's public web archive. Search crawlers such as OAI-SearchBot, Claude-SearchBot, or PerplexityBot are not included, because disallowing them removes a site from those search products.
Deployment Checklist
- Root Access: Upload strictly to
domain.com/robots.txt. - Naming: Filename must be lowercase
robots.txt. - Visibility: Ensure the file is public (HTTP 200).
Bot Guide: Googlebot (Google), Bingbot (Bing), GPTBot (OpenAI model training). Use * for all crawlers. Google-Extended is a control token for Gemini training, not a crawler.
SEO Health Check: Platform Presets
Click to add standard security, SEO, or AI training rules:
Test & Validate
Live Preview
# Generated robots.txt
Frequently Asked Questions
Where does the robots.txt file go?
At the root of your domain, served at https://yourdomain.com/robots.txt. Crawlers only read it from that exact path, so a robots.txt in any subfolder is ignored. The filename must be lowercase, and the file must return HTTP 200.
Does robots.txt actually block AI crawlers?
Only the ones that choose to obey it. OpenAI documents GPTBot as its crawler for model training and OAI-SearchBot as the one that surfaces sites in ChatGPT search. Anthropic says its bots, ClaudeBot included, honor robots.txt directives. Google-Extended is a control token, not a crawler: disallowing it limits Gemini training and grounding without affecting Google Search. User-triggered fetchers are the exception, because OpenAI says robots.txt rules may not apply to ChatGPT-User and Perplexity says Perplexity-User generally ignores them. A robots.txt file is a published request, not a hard firewall, so pair it with server-level controls for anything you must truly protect.
What is the difference between Disallow and noindex?
Disallow tells a crawler not to fetch a path, but it does not guarantee the page stays out of an index, because the URL can still be listed from external links. To keep a page out of results, allow the crawl and use a noindex meta tag or an X-Robots-Tag header so the engine can read the directive.
Should I block my CSS and JavaScript?
No. Google renders pages the way a browser does, so blocking CSS or JS stops it from seeing your real layout and content, which can lower how well the page is understood. Leave rendering assets crawlable; reserve Disallow for admin, checkout, plus other private directories.
Why add a Sitemap line?
The Sitemap directive points crawlers straight to your XML sitemap, the list of URLs you want crawled. The line must hold an absolute URL, which conventionally sits at the end of the file. A single robots.txt can list more than one sitemap.
What does User-agent: * mean?
The asterisk is a wildcard, so the rules beneath it apply to every crawler that has no block of its own. A crawler obeys the most specific matching group, so a named GPTBot block overrides the wildcard for GPTBot. Order the file from general rules down to specific ones for clarity.
Is a missing robots.txt a problem?
A missing file is treated as full-allow, so crawlers assume every path is open. That is fine for a fully public site, but most sites benefit from disallowing admin paths plus declaring a sitemap. An empty file behaves the same way as a missing one.
MAY THE FORCE BE WITH YOU