serps.io
All free tools

Technical

Robots.txt Tester

Confirm what crawlers can and cannot reach

In build

Paste a robots.txt and a list of URLs to see, per user agent, whether each one is allowed or blocked, which single line decided it, and why that line won against the others that also matched.

Get early access

What it returns

  • Allowed or blocked for each URL you paste, for each user agent you choose.
  • The exact line that decided the outcome, quoted with its line number, plus the other rules that matched and lost.
  • Why that line won: which agent group applied, how wildcards and the end-of-URL anchor expanded, and the precedence that broke the tie.
  • Syntax the parser ignored, directives that have no effect on crawling, and the sitemap lines found in the file.

When this matters

Someone adds a rule meaning to block one listing page and blocks every post beneath it, because a path prefix with no anchor matches far more than it looks like it does. Or a staging rule that blocks the whole site survives the launch. Both are invisible when you read the file and obvious the moment you can see which line fires for a real URL.

How to answer this today

Site audit catches this from the live site: it fetches your robots.txt as part of the crawl and reports the URLs it was not allowed to reach, which is how a mistake that is already shipped gets found. Testing a rule you have written but not deployed, against URLs you choose, is the check that has to happen before that.

Site audit

Why this is harder than it looks

Precedence is not intuitive

Rules are not applied in file order. The most specific match wins, measured by the length of the path pattern, and an Allow beats a Disallow of equal length. Reading the file top to bottom gives the wrong answer often enough to matter.

Crawlers do not agree

Wildcards and the end-of-URL anchor are supported by the major search crawlers and ignored by plenty of others, and some agents fall back to a general group when no group names them. The correct answer depends on which agent is asking.

One file per host and scheme

The secure and insecure versions of a host, and the www and bare versions, each have their own robots.txt. Testing the one you remember rather than the one that serves the URL is a common way to confirm the wrong thing.

Caching and what blocking does not do

Search engines cache robots.txt for a while, so a fix is not instant and a mistake outlives its deployment. A blocked URL can also still be listed in results, because robots.txt governs crawling and not indexing, which is the confusion that causes the most damage.