Robots.txt Generator
Create validated, standards-compliant robots.txt files to protect administrative paths, optimize crawler bandwidth, and declare your XML sitemaps.
Define Robot Directives
Select bot agents and specify URL pattern rules.
Robots.txt Directives Cheatsheet
Official protocol standards supported by Google & Bing.
User-agent: *
Applies the ensuing set of rules to every standard compliant web crawler.
Allow: /path/
Explicitly grants crawl permission to a specific file or subfolder.
Disallow: /admin/
Restricts bots from fetching URLs starting with this path prefix.
Sitemap: https://...
Points spiders directly to your comprehensive XML sitemap index.
Never add Disallow: / unless your site is in maintenance or private staging. Doing so orders all search engines to completely cease crawling your entire domain.
How Googlebot Evaluates Robots.txt Rules in 2026
Understanding rule precedence, pattern matching, and HTTP status codes prevents costly indexing errors that sabotage your organic ranking performance.
Rule Specificity & Precedence
Googlebot uses the most specific matching directive based on character length. If an Allow rule and a Disallow rule match the same URL, the directive with the longer pattern string takes absolute precedence.
Wildcards & End-of-String Anchors
Use the asterisk * to match any string of characters, and the dollar sign $ to signify the exact end of a URL (e.g. Disallow: /*.pdf$).
Handling AI Scraping Bots
Separating Search Engine bots (Googlebot, Bingbot) from Large Language Model scrapers (GPTBot, ClaudeBot, CCBot) allows you to maintain full search discoverability while controlling automated training ingests.
4 Critical Robots.txt Mistakes to Avoid
| Mistake | Bad Implementation | Correct Best Practice | SEO Consequence |
|---|---|---|---|
| Blocking CSS & JavaScript | Disallow: /assets/ | Allow: /assets/*.css Allow: /assets/*.js |
Google cannot render mobile layouts; tanks Core Web Vitals rankings. |
| Using Robots.txt for Noindex | Noindex: /private/ | Use <meta name="robots" content="noindex"> | Google retired 'Noindex' in robots.txt in 2019; directive is silently ignored. |
| Blocking Programmatic Landing Pages | Disallow: /check-*/ | Allow: / | Triggers 'Blocked by robots.txt' indexing failures in Search Console. |
| Missing Leading Forward Slash | Disallow: admin/ | Disallow: /admin/ | Invalid syntax; crawlers may not match the intended subdirectory. |
How to Upload and Test Robots.txt in 3 Steps
Ensure zero downtime and verify error-free live syntax before submitting to Google.
Upload to Root Directory
Place the robots.txt file in your server's top-level public HTML root (e.g., https://yourdomain.com/robots.txt).
Verify HTTP 200 Status
Open the file in a browser tab. Confirm that it returns an HTTP 200 OK status code with Content-Type: text/plain.
Test in Search Console
Open Google Search Console's Robots.txt Report under Settings. Request a recrawl to ensure Googlebot reads the updated directives immediately.
Common Questions on Robots.txt
Everything you need to know about search engine bot management, syntax rules, and crawl budgets.
Explore Complementary SEO Utilities
XML Sitemap Generator
Generate Google-ready XML sitemaps with priority tags.
HTML Sitemap Generator
Build human-readable sitemaps to pass internal PageRank.
Domain WHOIS Lookup
Inspect registrar, creation date, and nameservers instantly.
Domain Authority Checker
Analyze Moz DA, Page Authority, and Spam Score.