Skip to content
SEO Optimizer is live, Audit on page SEO and AI-search readiness. Try it free

How to Fix 'Indexed, Though Blocked by robots.txt'

"Indexed, though blocked by robots.txt" is a warning in Google Search Console. It means a URL is in Google's index even though your robots.txt tells Google not to crawl it. Google found the URL through links, could not read the page, and indexed it anyway with little or no information. These results often show up with no description, or with "No information is available for this page". A page indexed though blocked by robots.txt is not an error in itself, but it rarely looks good in search. The fix depends on one question: do you want this page in search or not?

Why Google Indexes Pages It Cannot Crawl

Robots.txt controls crawling, not indexing. A Disallow rule stops Googlebot from fetching a page, but if other pages link to that URL, Google still knows it exists and can index the URL on the strength of those links. Because Google never sees the page, it also never sees a noindex tag on it. That is how a page ends up indexed though blocked by robots.txt.

You wantRobots.txtPage
The page in search resultsAllow crawlingNo noindex
The page out of search resultsAllow crawlingnoindex meta tag or X-Robots-Tag header
Save crawl budget on endless URLs (filters, calendars)DisallowAccept that a few may be indexed from links

Step 1: Export the URLs and Decide

Open Indexing, then Pages, and find "Indexed, though blocked by robots.txt" (it appears as a warning on the indexed side of the report). Export the examples and sort them:

  • Should rank: product pages, articles or landing pages blocked by an overly broad rule. These need to be unblocked.
  • Should not rank: admin, cart, internal search, staging or tracking URLs. These need a noindex that Google can actually see.

Step 2: Find the Rule That Blocks Each URL

Use the robots.txt tester: enter the URL, pick Googlebot, and it shows whether the URL is allowed or blocked and which rule matches. Broad patterns are the usual cause.

robots.txtRules that block more than intended
User-agent: *
# Meant to block /search?q=..., but also blocks /search-engine-optimization-guide
Disallow: /search

# Meant to block query strings, but blocks every URL with a parameter
Disallow: /*?

Step 3a: Unblock Pages You Want Indexed

Narrow or remove the rule so the page can be crawled. Use $ to match the end of a URL and a trailing slash to limit a rule to a folder.

robots.txtNarrower rules
User-agent: *
Disallow: /search?
Disallow: /cart/
Allow: /search-engine-optimization-guide$

Then inspect the URL in Search Console and request indexing. Once Google can crawl the page, it gets a proper title and description in results.

Step 3b: Remove Pages You Do Not Want Indexed

For pages that should stay out of search, the fix sounds backwards: allow crawling and add a noindex.

  1. Add <meta name="robots" content="noindex"> to the page, or send X-Robots-Tag: noindex for non-HTML files such as PDFs.
  2. Remove or narrow the robots.txt rule so Googlebot can fetch the page and see the noindex.
  3. Wait for Google to recrawl. The URL moves to "Excluded by noindex tag", which is the result you want. See how "Excluded by noindex tag" works.
  4. Optionally, once the URLs have dropped out, you can block them again in robots.txt to save crawl budget.

For an urgent case, such as private data, use the Removals tool in Search Console to hide the URL quickly while the noindex takes effect, and protect truly private pages with a login. Robots.txt is public and is not a security control.

Pages get indexed though blocked by robots.txt because something links to them. Remove internal links to admin or tracking URLs, keep them out of your sitemap, and use clean URLs in navigation. The sitemap checker flags sitemap entries that robots.txt blocks, which is a direct contradiction.

Step 5: Validate the Fix for Pages Indexed Though Blocked by robots.txt

Click Validate fix on the report row. For unblocked pages, Google should index them normally. For noindexed pages, the count moves from this warning to "Excluded by noindex tag".

This warning is different from robots.txt syntax errors, a missing file or blocked CSS and JavaScript, which are covered in how to fix robots.txt issues. For how robots.txt and sitemaps work together, see the robots.txt and sitemap guide. You can also generate a clean file with the robots.txt generator.

FAQ

Häufig gestellte Fragen

Google indexed the URL because it found links to it, even though robots.txt blocks Googlebot from crawling the page. Google cannot read the page, so the result usually has no description.

Robots.txt controls crawling, not indexing. Google can index a URL it has never crawled if other pages link to it. Use noindex to keep a page out of the index.

No. Google stopped supporting noindex rules in robots.txt in 2019. Use a robots meta tag or an X-Robots-Tag header on the page.

Fix pages you want to rank by unblocking them, and pages you do not want indexed by allowing crawling and adding noindex. URLs that are rarely linked often drop out on their own.

No. Robots.txt is public and only asks well-behaved crawlers not to fetch pages. Protect private content with a login, and use noindex for pages that should not appear in search.

Kostenlos - keine Anmeldung nötig

Check this on your own site

Run a free scan and see exactly where you stand - no sign-up required.

Kostenlosen Audit starten