Home/Blog/Indexed Though Blocked by robots.txt: Fix (2026)

Indexed Though Blocked by robots.txt: Fix (2026)

Small robot stopped by barrier before glowing website portal, blocked access concept

Search Console reports something that sounds impossible: a page is “Indexed, though blocked by robots.txt.” You told Googlebot not to crawl the URL — yet there it sits in Google’s index, usually with no description, visible to searchers. The indexed though blocked by robots.txt fix hinges on one counterintuitive fact: robots.txt controls crawling, not indexing. A Disallow rule stops Googlebot fetching the page, but not Google listing the URL. This 2026 guide shows you how to get the outcome you actually want — fully indexed, or fully gone.

Here is why it happens. When other pages link to a blocked URL, Google learns the address exists. If enough signals suggest it is relevant, Google indexes the URL on the strength of its links and anchor text, without ever reading the content. Search Console flags it as a warning because the result is rarely what anyone wants: either the page should be properly indexed with its real content, or it should not appear at all.

Why “Indexed Though Blocked” Happens

  • Over-broad Disallow rules: Disallow: /shop accidentally blocking /shop-guide/, or a rule left over from a staging site.
  • Linked blocked pages: internal links (menus, footers, related posts) pointing at URLs robots.txt forbids.
  • External links: other sites linking to a page you blocked — you cannot control these.
  • Sitemap conflicts: submitting blocked URLs in your XML sitemap while forbidding them in robots.txt.
  • Staging leftovers: a Disallow: / from development that shipped to production.
  • AI-crawler-era caution: broad blocks added hastily in 2025–2026 catching legitimate pages.

How to Fix “Indexed, Though Blocked by robots.txt”: 7 Steps

Step 1: Decide first — should this page be in Google?

Open the report, export the example URLs, and sort them into two groups. Group A: pages you want in search — articles, product and category pages blocked by mistake. Group B: pages you do not want in search — internal search results, cart/checkout, account pages, filter URLs, admin paths. The fix is completely different for each group, and applying the wrong one makes things worse.

Step 2 (Group A): Remove or narrow the blocking rule

Open yoursite.com/robots.txt and find the offending Disallow. Narrow it: change Disallow: / to Disallow: /wp-admin/, or replace a broad prefix with specific paths. In WordPress, check Settings → Reading first — if “Discourage search engines from indexing this site” is ticked, WordPress itself is emitting a sitewide block. Also confirm your SEO plugin is not adding extra rules. Test every edited URL in Search Console’s robots.txt Tester before saving.

Step 3 (Group B): Allow crawling, then add noindex — in that order

This is the step most people get backwards. Blocking a page in robots.txt can never remove it from the index, because Google must crawl a page to see a noindex directive. So: remove the Disallow for the URL, then add <meta name="robots" content="noindex"> to the page (or an X-Robots-Tag: noindex HTTP header). Google recrawls, sees noindex, and drops the URL. Keep the noindex in place until the URL disappears from the report — removal can take weeks.

Text file with configuration directives in code editor, website access rules concept

Step 4: Remove or nofollow internal links to blocked pages

Links are what caused the indexing in the first place. For Group B pages, remove internal links pointing at them where possible, or add rel="nofollow" to links you must keep. One site fixed hundreds of affected parameter URLs simply by nofollowing sitewide links to them — Google gradually stopped prioritizing those URLs. Also remove blocked URLs from your XML sitemap; submitting a URL while forbidding its crawl is a direct contradiction.

Step 5: Verify with the robots.txt Tester

In Search Console go to Settings → robots.txt, paste each affected URL into the tester, and confirm Googlebot is now allowed (for both groups — remember, Group B needs crawling allowed so the noindex can be seen). A single misplaced wildcard can undo all your work, so test the exact URLs, not just the pattern.

Step 6: Request recrawling and be patient

Use URL Inspection to request indexing on representative URLs from each group. For Group A, indexing with full content usually follows within days. For Group B, expect slowness: the noindex must be discovered on recrawl, and one documented case took months for hundreds of URLs to fully clear. It is not broken — it is just slow.

Step 7: Protect truly sensitive pages properly

If a page contains genuinely sensitive information, robots.txt is the wrong tool entirely — it is a public file that advertises the paths you want hidden. Use password protection (WordPress supports this per-post natively) or server-level authentication instead. For staging sites, combine password protection with noindex rather than relying on a Disallow rule alone. See our WordPress 404 guide for related crawl-control basics.

How to Prevent robots.txt Indexing Surprises

Audit robots.txt quarterly: every Disallow should have a reason you can name, rules should be as narrow as possible, and the sitemap must never contradict it. After migrations or staging syncs, diff the live robots.txt against your intended version. A quick check with a free SEO audit tool catches over-broad blocks before Google’s index does.

Conclusion

Remember the golden rule: robots.txt stops crawling, only noindex (seen via a crawl) stops indexing. Want the page in search? Unblock it. Want it out? Unblock it and noindex it. For more Search Console mysteries solved in plain language, follow the KamiWeb blog.