Trakis

Trakis · Rules

Sitemap URLs blocked by robots.txt

Addresses listed in the sitemap that robots.txt forbids Googlebot or Bingbot to fetch, judged as each of them reads the file, with the line that decides. The sitemap asks search engines for a page and robots.txt forbids them to read it. While the rule stands, they cannot see what the page says; Google may still list the bare address from links, as "Indexed, though blocked by robots.txt".

CriticalCRAWL-001 · Crawlability · checked once for the whole site

Sitemap pages blocked by robots.txt: which rules apply, and the fix

Updated 18 October 2026.

A sitemap lists the pages you want search engines to find; robots.txt lists the paths they may not fetch. When the same address is on both, the site asks for a page and forbids reading it in one breath. This check finds those addresses.

# robots.txt
User-agent: *
Disallow: /collections/

# sitemap.xml
<url><loc>https://example.com/collections/sale</loc></url>

What Google says (robots.txt, sitemaps):

  • robots.txt is mainly for managing crawler traffic. It is not a way to keep a page out of Google.
  • A page robots.txt blocks can still appear in results, found through links, but without a description: Google could not read it. Search Console calls this “Indexed, though blocked by robots.txt”.
  • To keep a page out of results, use noindex, which Google must be allowed to fetch to see, or a password.
  • A sitemap should list the URLs you want to see in Google’s results.

So the fix depends on what the page is for. If it should be found, the robots.txt line covering it goes. If it should not, it leaves the sitemap; and if it must stay out of results altogether, it gets a noindex, and robots.txt lets crawlers in to read it.

Which robots.txt rules apply. A crawler obeys the group that names it, and only falls back to User-agent: * when none does:

User-agent: *
Disallow: /

User-agent: Googlebot
User-agent: Bingbot
Allow: /

Here every bot is shut out except the two search engines, which read the whole site. Until 18 October 2026 this check judged the file by our own crawler’s rules, so a file like this one made every listed page “never read by search engines”, and a page closed to Googlebot alone, open to us, slipped past. It now reads the file as Googlebot and Bingbot do.

Ours, as it is. trakis.io’s robots.txt shuts everything and then allows the public pages one by one, and its sitemap is built from that same list, so the two cannot disagree; a test fails if any address in the sitemap is one a crawler may not fetch. The demo shop’s robots.txt keeps two AI bots out, on purpose, and leaves search engines alone, so it has no finding here either.

Check it yourself. Open /robots.txt and /sitemap.xml side by side, or paste the file into our robots.txt validator and test a listed address as Googlebot. In Search Console, the Page indexing report lists “URL blocked by robots.txt”; filtered on the sitemap, it shows these.

How the audit decides.

  • It reads every address in the sitemaps and asks robots.txt about each, as Googlebot and as Bingbot read it, with Google’s matching rules (the longest matching path wins).
  • An address either of them may not fetch is CRAWL-001, critical, naming which and quoting the line that decides.
  • A link in a page to a blocked address, a login or a cart, is not this check’s: that is the normal way to keep private pages out, and CRAWL-006 notes it once.
  • robots.txt keeping AI search bots out is AI-005; a listed page that redirects, errors or says noindex, CRAWL-010.

Sources, read on 18 October 2026: Google Search Central, Introduction to robots.txt · Google Search Central, Build and submit a sitemap.

How common it is

Our study of 330 small sites, read from Common Crawl’s October 2026 archive, could not measure this check: no sitemap is read.

Where it usually comes from

A page was blocked in robots.txt during development or a redesign, while the sitemap plugin kept listing it. Sometimes a whole folder is disallowed and one of its pages later became important.

If Search Console says…

In the Page indexing report, these statuses can come from what this check finds:

  • “URL blocked by robots.txt”. Google lists the addresses robots.txt refused it. The ones that are also in your sitemap are the contradiction this check finds. What this status means, and how to fix it.
  • “Indexed, though blocked by robots.txt”. Google indexed the address from links without reading it, because robots.txt refused the crawl. If you want it in search, unblock it; if you don’t, allow the crawl and use noindex instead. What this status means, and how to fix it.

How to fix it

  • Decide, for each listed address, whether it should be in search at all.
  • If it should: remove the Disallow line in robots.txt that covers it.
  • If it should not: take it out of the sitemap. A sitemap should list only pages you want indexed.

How to check it yourself

Open yoursite.com/robots.txt and yoursite.com/sitemap.xml side by side, or test a listed address with the robots.txt tester in Google Search Console.

What it looks like in a report

Critical The URL is in the sitemap, but robots.txt keeps Googlebot and Bingbot out of it. · evidence: robots.txt line 4: Disallow: /collections/ · /collections/sale

The sitemap and robots.txt disagree about one folder; fixing either file settles it for every page inside. (An example shop; the numbers are illustrative.)

How the audit counts it

CRAWL-001 is a critical in the crawlability category, and weighs heavily in that category’s score. It is a fact about the site as a whole, so it is reported once, not once per page.

If the finding is deliberate on your site, it can be accepted as intentional in the report. It then leaves the list and the score, and comes back on its own if what it shows changes.

Other crawlability checks

Find it on your site

A free Trakis audit runs this check and the other 66 on your site, and tells you on how many pages each one sits. Or go back to all the rules.