πŸ€– Robots.txt Analyzer & Tester

Parse and validate any site's robots.txt. See user-agent groups, allow/disallow rules, sitemap references, and crawl-delays. Test whether a specific URL path is blocked for Googlebot, Bingbot, or any other user agent β€” all in your browser.

Try: wikipedia.org github.com stackoverflow.com reddit.com nytimes.com
βš™οΈ
Fetching robots.txt…
Copied

About the Robots.txt Analyzer

The Robots.txt Analyzer fetches any domain's /robots.txt file, parses it into a structured tree of user-agent groups, allow/disallow rules, sitemap references, and crawl-delay directives, then lets you test whether any URL path is blocked for any specific bot. The parser follows the Google Robots Exclusion Protocol (RFC 9309) and Google's longest-match rule for allow/disallow precedence.

All parsing runs on the server (to avoid CORS restrictions when fetching arbitrary origins) but the URL-tester runs entirely in your browser once parsed β€” instant results, no round-trip.

What the analyzer reports

πŸ“Š Summary statistics

Total lines, directive count, group count, sitemap references, and warning count β€” at-a-glance health of the file.

🚨 Critical warnings

The most dangerous mistake β€” User-agent: * + Disallow: / β€” blocks the entire site from all crawlers. The tool tags any group in this state with a red "Blocked All" badge.

πŸ‘₯ User-agent groups

Each group is shown with its user-agents, then all its rules in file order (Allow, Disallow, Crawl-delay). Stacked user-agent lines are correctly merged into one group per Google's spec.

πŸ—ΊοΈ Sitemaps

Every Sitemap: directive is extracted and linked. Sitemaps are global (they apply to the whole site, not to any specific user-agent group).

⚠️ Syntax warnings

Missing colons, unknown directives, rules that appear before any user-agent β€” all flagged with line numbers so you can find them fast.

The URL tester

Enter a URL path (e.g., /private/, /admin/settings, /blog/post-42) and pick a bot (Googlebot, Bingbot, DuckDuckBot, YandexBot, or the wildcard *). The tester finds the most specific matching user-agent group, then applies each rule in order:

  • Empty Disallow: allows everything (this is the default state before any rule).
  • Wildcards * match any sequence of characters.
  • $ at the end of a pattern anchors it to the end of the URL.
  • The longest matching pattern wins β€” so a specific Allow: /public/whitelist.html can override a broader Disallow: /public/.

The result shows which rule matched, on which line, and whether the bot is allowed or blocked.

Robots.txt best practices

  • Always add a Sitemap directive β€” Sitemap: https://example.com/sitemap.xml. It's the fastest way for crawlers to discover your URL list.
  • Never disallow CSS or JS β€” Google needs them to render your page correctly for ranking.
  • Don't use robots.txt to hide sensitive URLs β€” the file is public. Anyone can read your Disallow list. Use auth for real security.
  • Prefer noindex meta over Disallow for pages you want out of the index but that should still be crawlable (e.g., internal search results).
  • Test after every change β€” one stray Disallow: / under User-agent: * can de-index a site overnight.

Privacy & limits

Fetching runs server-side, SSRF-guarded (private IPs blocked), 10-second timeout, 1 MB response cap, rate-limited to 30 requests per minute per IP. Nothing is stored.

Frequently asked questions

A plain-text file at the root of every domain (/robots.txt) that tells search-engine crawlers which URLs they may or may not visit. Uses simple User-agent + Allow/Disallow rules.
It picks the most specific matching user-agent group, then applies Google's longest-match rule β€” a longer Allow pattern beats a shorter Disallow and vice versa. Empty Disallow means allow all.
Disallow: / under User-agent: * blocks the entire site from every crawler β€” the single biggest SEO mistake possible. The tool flags any group in this state with a red Blocked All badge.
It's a voluntary standard. Major search engines (Google, Bing, DuckDuckGo, Yandex, Baidu) respect it. Malicious scrapers and some AI training crawlers may ignore it β€” use auth or IP blocking for hard restrictions.
No β€” robots.txt is public. Listing sensitive paths there tells attackers exactly where to look. Use authentication for private URLs; use <meta name="robots" content="noindex"> for pages you just want out of the index.