Validation Results
Parsed Rules
| User-Agent | Directive | Value |
|---|
Test a URL
Enter a path and select a user-agent to check if it would be blocked or allowed.
Robots.txt Best Practices
The robots.txt file tells search engine crawlers which pages or sections of your site they can or cannot request. It lives at the root of your domain (e.g. https://example.com/robots.txt) and follows a simple text-based protocol.
Valid Directives
User-agent— Specifies which crawler the following rules apply to. Use*for all bots.Disallow— Tells the bot not to crawl the specified path. An empty value means "allow all."Allow— Overrides aDisallowfor a more specific path (supported by Google and Bing).Sitemap— Points to your XML sitemap. Must be an absolute URL. Can appear anywhere in the file.Crawl-delay— Requests a delay (in seconds) between crawler requests. Not supported by Google, but used by Bing and others.Host— Specifies the preferred domain version. Used mainly by Yandex.
Common Mistakes to Avoid
- Using
Disallow: /blocks all crawling — your pages will not be indexed. - Forgetting the
User-agentdirective beforeDisalloworAllowrules. - Using relative URLs in
Sitemapdirectives — they must be absolute (start withhttp). - Blocking CSS/JS files that search engines need to render your pages.
- Relying on robots.txt for security — it is publicly readable and not an access control mechanism.
Wildcard Patterns
Google and Bing support * (match any sequence) and $ (end of URL) in path patterns. For example, Disallow: /*.pdf$ blocks all PDF files.
All Free SEO Tools
More free tools to help with your SEO workflow.
FAQ Schema Generator
Word Counter
Robots.txt Generator
Robots.txt Validator
SERP Preview
Meta Tag Generator
URL Slug Generator
Schema Markup Generator
Open Graph Generator
Twitter Card Generator
Hreflang Generator
.htaccess Redirects
Canonical Tag Generator
Meta Robots Generator
Title Length Checker
Readability Checker
UTM Link Builder
CSS/JS Minifier
Local Business Schema
XML Sitemap Generator
Keyword Density Checker
Lorem Ipsum Generator
Text Case Converter
HTML Entity Encoder
JSON-LD Validator
Duplicate Content Checker
Breadcrumb Schema
Video Schema Generator
Markdown to HTML
JSON Formatter
Social Media Image Sizes
Q&A Schema Generator
Article Schema Generator
Keyword Difficulty Checker
Content Engagement Score
Ahrefs Bot IP Finder
Sitemap URL Extractor
SEO Content Outline Extractor
Broken Link Checker