Indexed, though blocked by robots.txt: what to do
Search Console says Google indexed a page it was told not to crawl. Here is why that happens and how to fix it with noindex, not more disallow rules.
Search Console has a status that confuses almost everyone the first time: "Indexed, though blocked by robots.txt". It sounds like a contradiction. You told Google not to crawl the page, and Google indexed it anyway. This guide explains why that happens, and how to fix it in the direction you actually want.
Why a blocked page still gets indexed
robots.txt controls crawling. It does not control indexing. Those are two separate steps. Crawling means fetching the page. Indexing means storing a record of the URL so it can show up in results.
If other pages link to a blocked URL, Google learns the URL exists. It cannot read the page, but it can still index the address using signals like anchor text from those links. The result is a bare listing. The snippet often says no information is available for this page, because Google was never allowed to read it.
This usually shows up for URLs people link to by accident: internal search results, filtered category pages, login pages, staging paths, and old campaign URLs.
Decide what you want first
The fix depends on the outcome you want. There are only two honest options.
- You want the page in search. The disallow rule is a mistake. Remove it.
- You want the page out of search. Blocking is the wrong tool. You need noindex, and Google must be able to crawl the page to see it.
Most of the confusion comes from people choosing the second goal and then using the first tool.
Fix it when the page should rank
- Find the rule in robots.txt that matches the URL. Search Console's robots.txt report shows the file Google last fetched.
- Remove or narrow the disallow line. Watch for wildcards that catch more than you meant.
- Open the URL Inspection tool, test the live URL, and confirm crawling is now allowed.
- Request indexing for the most important pages, then check back in a few days.
Narrow rules beat broad ones. A single line that blocks a whole folder is a common cause of this status on pages that should never have been blocked.
Fix it when the page should disappear
The reliable method has an order. Get it wrong and nothing changes.
- Remove the disallow rule for that URL, so Google can fetch it again.
- Add a noindex directive. Use a robots meta tag in the HTML, or an X-Robots-Tag header for PDFs and other non-HTML files.
- Wait for Google to recrawl the page and see the noindex. The status should change to excluded by noindex.
- Once the URL has dropped out, you can add the disallow rule back if you still want to save crawl effort. Many sites simply leave noindex in place.
Do not put a noindex line inside robots.txt. Google stopped supporting that in 2019, so it does nothing.
When noindex is not enough
Noindex is for pages that can be public but should not appear in results. If the page holds private data, put it behind a login or return a 401 or 403. Robots rules and noindex tags are requests, not locks.
If you need a URL hidden fast, the Removals tool can hide it temporarily. It does not fix the cause. The URL can return unless you also apply noindex, a login, or a proper removal status.
What this means for AI crawlers
The same split between crawling and using content applies, but the details vary by company and can change. A well-behaved AI crawler that respects your disallow rule will not fetch the page. Whether an AI engine can still mention or cite the bare URL from outside sources is less clear, and vendors do not document it consistently. Treat robots.txt as a crawl control only, and use access controls for anything sensitive.
How to audit this status
- Open the Page indexing report in Search Console and find the "Indexed, though blocked by robots.txt" group.
- Export the URLs and sort them by pattern. Most cases come from two or three rules.
- Check whether each pattern should rank, be noindexed, or be protected.
- Fix by pattern, not by single URL.
- Validate the fix in Search Console and recheck after a few weeks.
Expect the status to clear slowly. Google has to recrawl each URL, and low-priority URLs get recrawled rarely.
The takeaway
Blocking in robots.txt does not remove a page from Google. Pick your goal. If the page should rank, delete the disallow rule. If it should vanish, allow crawling, add noindex, wait for the drop, and only then consider blocking again. Start today by exporting the affected URLs from Search Console and grouping them by rule.