"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 want | Robots.txt | Page |
|---|---|---|
| The page in search results | Allow crawling | No noindex |
| The page out of search results | Allow crawling | noindex meta tag or X-Robots-Tag header |
| Save crawl budget on endless URLs (filters, calendars) | Disallow | Accept 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.
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.
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.
- Add
<meta name="robots" content="noindex">to the page, or sendX-Robots-Tag: noindexfor non-HTML files such as PDFs. - Remove or narrow the robots.txt rule so Googlebot can fetch the page and see the noindex.
- 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.
- 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.
Step 4: Reduce Links to Blocked URLs
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".
Related robots.txt Problems
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.