Free Robots.txt Generator
Control how Googlebot, Bingbot, and AI web scrapers index your website. Generate clean, valid robots.txt rules in 1 click.
Crawler Settings
Configure ADSENSE_CLIENT_ID in config.php to display live monetization units.
Understanding Robots.txt Directives & Crawl Budget Optimization
A robots.txt file is a simple text file implementing the Robots Exclusion Protocol (REP). It acts as the polite front gate for web crawlers, informing search engine user-agents (Googlebot, Bingbot, YandexBot, Baiduspider) which sections of your website they are allowed or forbidden from crawling.
Preventing crawlers from wasting time on duplicate administrative scripts, internal search query facets, and temporary folders preserves your domain's Crawl Budget. This ensures search engines index your newly published blog posts and valuable landing pages significantly faster.
Core Directive Syntax
- User-agent: * Applies rule to all bots
- Disallow: /admin/ Blocks entire directory
- Allow: /admin/login.php Explicitly allows one file
- Sitemap: [URL] Directs bots to your XML index
Critical Technical SEO Warnings
Common robots.txt pitfalls that can de-index entire production websites:
-
Accidental Disallow / : Leaving
Disallow: /in production de-indexes your entire domain from Google. -
CSS/JS Files: Never disallow
/wp-content/themes/or CSS/JS folders; Google needs them to render pages.
Common Web Crawler User-Agent Directives
| Crawler Entity | User-Agent Token | Owner Organization | Recommended Access |
|---|---|---|---|
| Google Search Desktop & Mobile | Googlebot | Google LLC | Allow (Essential for SEO) |
| Bing Search Crawler | Bingbot | Microsoft Corp | Allow (Bing & Copilot Search) |
| OpenAI LLM Scraper | GPTBot | OpenAI | Optional (Disallow if protecting training data) |
| Common Crawl Web Corpus | CCBot | Common Crawl Foundation | Optional |
Frequently Asked Questions (FAQ)
Yes. Directives and path names are case-sensitive. Disallow: /Admin/ will not block crawlers from visiting /admin/.
Googlebot ignores the Crawl-delay directive in robots.txt (crawl rate is managed dynamically inside Google Search Console). However, Bing and Yandex respect it.
Yes, you can specify multiple Sitemap: https://... directives on separate lines at the bottom of your robots.txt file.