Robots.txt and sitemap checker

Fetch robots.txt or a sitemap, or paste the file, then test a path against the rules.

In URL mode, the robots.txt or sitemap address is sent to api.allorigins.win, which downloads the file. Pasted text is parsed only on this page. The path test never leaves the browser.

How to use it

  1. Paste rules, or enter a site URL to fetch /robots.txt.
  2. Optionally give a sitemap URL. Otherwise the first Sitemap line in the file is fetched.
  3. Enter a path and a user-agent. The decision uses the longest matching Allow or Disallow, and Allow wins a tie.

The path test follows the rule Google documents: the most specific user-agent group, then the longest matching path, with Allow beating Disallow when the lengths are equal. Other crawlers can disagree.

Sitemap support reads loc entries from a urlset or a sitemap index. Very large files may be truncated by the fetch service; the page shows what came back and the count of loc values in that text.

A Disallow with an empty value does not block the site. A missing robots.txt is reported as a fetch error, not as an allow-all policy, because we did not see the file.

Related tools