Rankite
ServicesResultsToolsTeamAboutBlogCareersContactFree SEO Audit
Free tool

Robots.txt Tester

Paste your robots.txt, choose a user-agent and a path, and see instantly whether that path is allowed or blocked, matched the same way search engines read the file.

Home / Tools / Robots.txt Tester
Verdict
-
Matching rule
-

This parses the file in your browser using the same longest-match rule search engines use. Nothing you paste is uploaded anywhere.

Built by Rankite, the SEO team behind Swordfish AI's +400% revenue and Zluri's +45% organic growth. See the case studies

A robots.txt tester takes the rules in your robots.txt file and answers one precise question: for a given crawler and a given path, is that path allowed or blocked? Reading the rules by eye gets error prone fast once a file mixes several Disallow lines with Allow exceptions, so this tool applies the actual matching logic search engines use and gives a direct verdict.

How robots.txt matching actually works

Search engines first find the group of rules that applies to the crawler in question, matching the exact user-agent if one is listed, or falling back to the wildcard user-agent group written as User-agent: *. Within that group, every Allow and Disallow rule is compared against the path, and the rule with the longest matching pattern wins, not the first rule in the file. When an Allow and a Disallow rule are equally long, Allow wins. This is why a short Disallow: /admin/ can still let through a page under Disallow: /admin/public/, a common and correct pattern.

What robots.txt can and cannot do

Robots.txt controls crawling, not indexing. A Disallow rule tells well behaved crawlers not to fetch a page, which is useful for keeping crawlers out of admin areas, internal search results or duplicate parameter pages. But if a blocked URL is linked to from elsewhere, Google can still show it in search results without a description, since it never crawled the page to know what noindex says. If the goal is to keep a specific page out of search entirely, a noindex tag on a crawlable page is the correct tool, not a Disallow rule.

Testing before you ship a robots.txt change

Paste the exact file you are about to publish, then test every important path: pages you want indexed, admin or checkout paths you want blocked, and any Allow exceptions carved out of a broader Disallow. A single misplaced slash or an overly broad Disallow can silently deindex an entire section of a site, so testing the specific paths that matter before publishing catches the mistake while it still costs nothing. Auditing crawl access across a full site, and catching these issues before they ship, is standard practice in the technical SEO work Rankite runs for clients.

Related articles

FAQ

Robots.txt Tester: questions, answered

How does this robots.txt tester work?
Paste your robots.txt rules, pick the user-agent and the path you want to test, and the tool parses the file the way search engines do: it finds the group of rules that applies to that user-agent, then finds the single most specific Allow or Disallow rule that matches the path. Whichever rule is longest wins, and ties go to Allow.
Why did a shorter Disallow rule not block my path?
Because robots.txt uses the most specific match, not the first match. If a Disallow rule and an Allow rule both match a path, the one with the longer matching pattern wins regardless of which line comes first in the file. A short Disallow like /admin/ can be overridden by a longer, more specific Allow like /admin/public/.
What does Disallow with an empty value mean?
An empty Disallow value, written as just Disallow: with nothing after the colon, means nothing is blocked. It is the same as not having a Disallow rule at all for that group, which is a common way to explicitly say a user-agent may crawl everything.
Does robots.txt stop a page from appearing in Google?
Not by itself. Disallow in robots.txt stops well behaved crawlers from fetching the page, but Google can still index a URL it discovers elsewhere, such as through a link, showing it without a description. To fully keep a page out of search, use a noindex meta tag or header, which requires the page to be crawlable so Google can see that tag.
Which user-agent group applies if my crawler is not listed?
If there is no group for your exact user-agent, search engines fall back to the group for the wildcard user-agent, written as User-agent: *. If neither exists, there are no rules for that crawler, and everything is allowed by default.
Can I test more than one path at a time?
This tool checks one user-agent and path combination at a time, so you get a clear, specific verdict without ambiguity. Test each important path and directory in your robots.txt separately, especially any Allow exceptions carved out of a broader Disallow rule, to confirm they behave the way you expect.

More free tools

Let's grow

Ready to own page one?

Get a free, no-obligation SEO audit and a 30-minute strategy session. We'll show you exactly where the growth is hiding.

Book your free audit Explore services
Get in touch

Tell us about your project

Fill out the form and we'll get back to you within one business day. Prefer email? Write to us directly at contact@rankite.com.

Or copy our email and write to us directly: contact@rankite.com