robots.txt Path Matcher & sitemap.xml SEO Auditor
Simulate Googlebot longest-match robots.txt Allow/Disallow precedence against any URL path while auditing sitemap.xml `<loc>` URL counts, trailing slashes, and localhost leaks.
Input & Options
Local JS Execution
Parsed Output & Diagnostics
Ready
Status
...
Generated Output
Google RFC 9309 Crawl Directive Precedence
| Rule Pair | Winner | Why |
|---|---|---|
| Disallow: /admin/ vs Allow: /admin/public | Allow wins | Longest matching path rule (/admin/public = 13 chars > 7 chars) |
| Equal-length Allow and Disallow | Allow wins | RFC 9309 breaks exact-length ties in favor of Allow |
| Disallow: /*?session= | Wildcard supported | * matches zero or more chars; $ anchors end of URL |
| No Sitemap: directive | Still crawlable, slower discovery | Explicit Sitemap: URL aids Search Console indexing |
Parser Methodology & Privacy Guarantees
Implements RFC 9309 robots.txt path prefix/wildcard matching with longest-pattern precedence, and validates `<loc>` nodes in pasted `sitemap.xml` content.
- Evaluates both `Allow:` and `Disallow:` lines (`*` and `$` anchors) and ranks winner by matched rule character length.
- Audits accidental `Disallow: /` production blocks and missing `Sitemap:` declarations.
- Inspects `<loc>` URLs for HTTP links, localhost hosts, duplicates, and the 50,000-URL sitemap ceiling.
Scope & limitations: Evaluates pasted text offline without making network HTTP fetches to live remote domains.
Frequently Asked Questions
Does Disallow in robots.txt remove a URL already in Google's index?
No. robots.txt blocks crawling, not indexing if external links point to the URL. Use a meta robots noindex header/tag (while keeping crawling allowed) to drop indexed pages.
How does longest-match rule precedence work in robots.txt?
Rule order in the file does not matter under RFC 9309: the rule whose pattern has the longest character match wins, and exact ties favor Allow.
Why should sitemaps exclude duplicate or non-HTTPS URLs?
Mixed http/https or duplicate URLs waste crawl budget and dilute canonical signals across duplicate variants.