Robots.txt & Sitemap Checker
Inspect your website's robots.txt against the official RFC 9309 Robots Exclusion Protocol, test crawler access with an interactive path simulator, and validate XML Sitemaps for search engine compliance.
What is robots.txt & RFC 9309?
The Robots Exclusion Protocol originated in 1994 as an informal consensus among early web crawler developers. For nearly three decades, different search engines implemented slightly divergent interpretations of pattern matching, wildcards, and rule precedence.
In September 2022, the Internet Engineering Task Force (IETF) published RFC 9309, codifying robots.txt into a formal Proposed Standard. RFC 9309 establishes deterministic rules for:
User-Agent Grouping
Directives are grouped under one or more User-agent: lines. Crawlers must match the most specific group matching their product token, or fall back to the wildcard * group.
Longest Match Precedence
When multiple Allow and Disallow rules match a URL path, the rule with the longest matching pattern length in octets takes precedence.
Equal Specificity Allow Precedence
If an Allow: and Disallow: rule match a path with equal pattern length, the Allow directive wins under RFC 9309 §2.2.2.
Empty Disallow Means Allow All
An empty Disallow: line clears all crawl restrictions, explicitly declaring the entire origin open to crawling.
What is an XML Sitemap?
While robots.txt defines boundaries on what crawlers may not fetch, an XML sitemap serves the opposite purpose: it acts as a structured catalog telling search engines which canonical URLs exist, when they were last updated, and how they should be prioritized.
The root XML tag for standard sitemaps containing up to 50,000 individual <url> nodes with <loc>, <lastmod>, <changefreq>, and <priority>.
The parent catalog tag for websites with more than 50,000 URLs or multiple sections. Lists child sitemaps inside <sitemap> elements.
Where Should Files Be Located?
https://<your-domain>/robots.txtrobots.txt MUST be hosted at the root path of the target origin. Subdirectory placements (e.g., /blog/robots.txt) are ignored by compliant crawlers.
Sitemap: https://<your-domain>/sitemap.xmlConventionally placed at /sitemap.xml, but may reside anywhere within the same host origin as long as it is explicitly declared inside robots.txt.
Common Failures & Syntax Errors
Automated validation regularly uncovers the following critical configuration mistakes:
Missing User-agent Declaration
ROBOTS_SYNTAX_ERRORAllow or Disallow directives published without an preceding User-agent line are invalid under RFC 9309 and will be discarded by crawlers.
UTF-8 BOM Characters
ROBOTS_BOM_PRESENTText editors sometimes save robots.txt with a Byte Order Mark (\uFEFF), which can cause older parsers to misread the first User-agent directive.
Disallowing URLs with 'noindex'
ROBOTS_BLOCKS_NOINDEXIf a page is blocked in robots.txt, crawlers cannot fetch it to discover the meta noindex tag, causing the URL to remain indexed via external links.
Exceeding Sitemap Limits (50k URLs / 50 MB)
SITEMAP_SIZE_LIMIT_EXCEEDEDA single XML sitemap containing more than 50,000 URLs or exceeding 50 MB uncompressed violates the official Sitemaps.org specification.
Invalid ISO 8601 <lastmod> Timestamps
SITEMAP_INVALID_LASTMODUsing non-standard date formats (e.g. MM/DD/YYYY) instead of W3C Datetime format (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ).
Cross-Origin Sitemaps on External Hosts
SITEMAP_EXTERNAL_ORIGINDeclaring sitemap URLs located on an external domain without cross-submission proof. These are skipped under safe-origin security policies.
Does robots.txt Protect Private Pages?
robots.txt is NOT an Access Control Boundary
A common and dangerous mistake is using robots.txt to hide sensitive endpoints such as /admin/, /staging/, or /internal/.
robots.txt is a publicly accessible file. Malicious actors, scrapers, and penetration testers regularly inspect robots.txt as part of initial reconnaissance to discover confidential or unlinked endpoints.
Robots.txt & Sitemap FAQs
Detailed technical guidance on RFC 9309 parsing, sitemap validation, search engine indexing, and safe crawler configuration.
Explore More Free Security & Web Tools
Inspect other facets of your website’s security, transport integrity, and domain posture:
security.txt Validator
Validate RFC 9116 security disclosure files, Contact directives, and PGP encryption keys.
HTTP Status & Redirect Checker
Inspect HTTP status codes, trace redirect chains, and detect SSL downgrade loops.
DNS Lookup Tool
Query forward DNS records (A, AAAA, MX, NS, TXT, SOA, CAA) with TTL metrics.
SSL/TLS Certificate Checker
Inspect TLS certificate validity, issuer trust chains, expiration dates, and cipher suites.
Security Headers Checker
Audit CSP, HSTS, X-Frame-Options, Permissions-Policy, and CORS configurations.
Website Security Checker
Launch a comprehensive perimeter scan assessing vulnerabilities, SSL, and DNS posture.
Ready for a Complete Security Assessment?
Robots.txt and sitemaps define crawlability, but what about SSL misconfigurations, open ports, missing HTTP security headers, and domain spoofing risks?