FREE TOOL

Robots.txt tester

Paste your robots.txt and the URLs you care about. See whether each one is allowed or blocked, and which rule decided.

Rules are matched the way Google documents them: the crawler's own group wins over the * group, the longest matching rule wins, and Allow beats Disallow on a tie. Only the path and query of a URL are tested; the host is ignored.
THE RESULT FOR GOOGLEBOT
  • Allowed

    https://example.com/

    Decided by Allow: / in the * group (there is no group for this crawler).

  • Blocked

    https://example.com/admin/users

    Decided by Disallow: /admin/ in the * group (there is no group for this crawler).

  • Blocked

    https://example.com/blog/post?sort=new

    Decided by Disallow: /*?sort= in the * group (there is no group for this crawler).

  • Allowed

    https://example.com/private-images/logo.png

    Decided by Allow: / in the * group (there is no group for this crawler).

WHAT THE FILE SAYS

  • **: 3 Disallow, 1 Allow
  • Ggooglebot-image: 1 Disallow, 0 Allow
  • Ggptbot: 1 Disallow, 0 Allow

Sitemap: https://example.com/sitemap.xml

The longest matching rule wins, and Allow beats Disallow on a tie.

CHECK THE LIVE PAGE

Paste a URL instead and we will read the real robots.txt and 29 more things about the page.

Run the SEO audit

How to read the result

A crawler reads robots.txt before it fetches a page. It looks for the group whose User-agent line names it; if there is none, it uses the * group; if there is no * group either, nothing is blocked. Inside the group, every Allow and Disallow line is compared with the path of the URL, and the longest matching rule wins. When an Allow and a Disallow match with the same length, Allow wins. This tool applies exactly those rules, which are the ones Google documents, and shows you the line that decided.

Only the path and query of a URL are tested, from the first slash. A pattern can contain * for any run of characters and end in $ to mean the end of the URL, so Disallow: /*?sort= blocks every address with ?sort= in it, and Disallow: /*.pdf$ blocks addresses that end in .pdf. A Disallow with nothing after it allows everything, and a line starting with # is a comment.

Blocking a page in robots.txt keeps the crawler from fetching it; it does not keep the address out of Google. A blocked page can still be listed if other pages link to it, just without a description. To keep a page out of the results, let the crawler fetch it and use a noindex tag instead.

Common mistakes this catches

A Disallow: / left over from a staging site blocks everything. A group for a specific crawler replaces the * group for that crawler, so User-agent: Googlebot followed only by Disallow: /private/ means Googlebot ignores every rule in your * group. And a rule such as Disallow: /blog also blocks /blog-tips and /blogroll, because rules match the start of the path; write /blog/ or /blog$ when you mean the one page.

LEARN MORE

The lessons behind this tool.

TECHNICAL SEO · 01Published is not indexed. Find where your page got stuck.

Crawling and indexing, explained simply

Published isn't the same as indexed. Learn the steps every page goes through before it can rank, and follow Blue Cove Kayaks as it finds out why its new beginner lesson page is nowhere on Google.

0114 Sept10 minRead tip
TECHNICAL SEO · 02List only the pages you want found, and keep every date honest.

XML sitemaps: what to include and what to leave out

A sitemap is a list of promises: this page exists, this is the version to show, and it's worth showing. Learn what belongs in one, and follow Blue Cove Kayaks as it cuts its sitemap from 212 addresses to the 24 that matter.

0224 Sept10 minRead tip
TECHNICAL SEO · 03Find it, check it, submit it once, then read the report.

How to create an XML sitemap and submit it to Google

Most sites already have a sitemap. The real work is finding it, checking it and telling search engines where it is. Follow Blue Cove Kayaks as it discovers Google is still reading a sitemap from a website it replaced two years ago.

0320 Oct9 minRead tip