Search Console
"Indexed, Though Blocked by robots.txt": What It Means and How to Fix It
Search Console has flagged pages as "Indexed, though blocked by robots.txt", and it sounds like a contradiction. It isn't, and it's often harmless. But sometimes it means a page you wanted in Google is half-hidden, or a page you wanted gone is still showing up. Here's how to tell which, and the right fix for each.
- What the warning means, in plain words
- When you can safely ignore it
- The right fix, whether you want the page in Google or out
By Nicky Christensen· Founder, Sitewatch
01The short version
What "Indexed, though blocked by robots.txt" means
Your robots.txt file tells Google which addresses on your site it may visit. When a rule in it covers a page, Google respects that and doesn't read the page. But Google can still learn the page exists, usually because something links to it: another site, your own menu, a sitemap.
That's the situation this warning describes. In Google's words, the page "was indexed despite being blocked by your website's robots.txt file." Google never opened the page, so it indexed the address using what the linking pages say about it. Google adds that any snippet shown for the page "will probably be very limited", which is why these results often appear with no description at all.
So the warning means two things are true at once:
- The page can appear in Google search results.
- Google can't see what's on it, so the result looks bare and can't rank on the page's content.
It's listed as a warning, not an error. Whether you need to do anything depends entirely on one question: do you want this page in Google or not?
How it differs from "Blocked by robots.txt"
Search Console has a second, similar status: Blocked by robots.txt. That one means Google found the address, wasn't allowed to visit, and left it out of the index. "Indexed, though blocked" means it was left unvisited but put in the index anyway. For plain "Blocked by robots.txt", Google notes that such pages "are probably intentionally blocked" and it's up to you whether to act. We cover that status, and what to do when it hits pages you care about, in how a stray "Disallow: /" deindexed an entire site.
02Common reasons
Why pages end up indexed but blocked
Cart, checkout and account pages
LowShops block these on purpose, and they get linked from every product page. Shopify's default robots.txt blocks the cart, checkout and account pages, for example. Usually nothing to fix.
Internal search and filter pages
LowSearch result pages and filtered or sorted lists are often blocked to keep Google from wading through endless variations. Links to them can still get them indexed.
Other sites link to a blocked page
ModerateGoogle's own explanation: robots.txt doesn't prevent indexing if someone else links to your page. The more links, the more likely the address shows up.
You used robots.txt to hide a page
CriticalA common mix-up. Blocking a page in robots.txt stops Google reading it, not listing it. If you wanted it out of Google, this is the wrong tool.
A rule wider than you meant
CriticalA rule meant for one folder matches more than intended, so pages you want in Google are now blocked but still linked. They stay listed, with no description.
A plugin or migration rewrote robots.txt
ModerateAn SEO plugin, theme change or platform move replaced your robots.txt with new rules, and pages that used to be open are now blocked.
03Fixes
How to fix it: first decide what you want
Open the warning in Search Console's Page indexing report and look at the example addresses. Sort them into three groups.
1. Pages that should be blocked and you don't mind seeing listed: leave them
Cart, checkout, login, account and internal search pages fall here for most sites. A bare listing for your cart page does no harm. Google says it might not always make sense to fix a given issue, and to use your judgment. You don't have to clear every warning in Search Console.
2. Pages you want in Google: remove the block
If a product page, blog post or service page is in the list, a rule is stopping Google from reading something you want found. Google's advice is to update your robots.txt file to unblock the page.
- Open
yourdomain.com/robots.txtand find theDisallowline that matches the page's address. Remember that rules match by how the address starts:Disallow: /pblocks/products/and/pricingtoo. - Remove the line, or narrow it so it only covers what you meant to block.
- In Search Console, open the robots.txt report (under Settings) to check Google has the new version. Google recrawls robots.txt often, but if you unblocked important pages you can choose Request a recrawl. Google notes this doesn't guarantee an immediate recrawl of the pages you unblocked.
- Run URL Inspection on one of the pages and request indexing.
3. Pages you want out of Google: allow crawling, then add noindex
This is the counter-intuitive one. To get a page out of Google, you have to let Google in. Google says robots.txt "is not a mechanism for keeping a web page out of Google". To keep a page out, it says to block indexing with noindex or put the page behind a password.
- Add a noindex instruction to the page. On WordPress, an SEO plugin such as Yoast SEO or Rank Math can set this per page. Elsewhere, add
<meta name="robots" content="noindex">to the page, or have your developer send it as a header. - Remove the robots.txt rule that blocks the page. This step matters: Google says that if the page is blocked by robots.txt, its crawler "will never see the noindex rule", and the page can still appear in results.
- Wait for Google to revisit. Once it reads the noindex, it drops the page from results.
- If the page shouldn't exist at all, delete it or redirect it to a useful page instead.
Don't try to put noindex inside robots.txt itself. Google states that specifying noindex in the robots.txt file is not supported.
Platform notes
- WordPress creates a robots.txt for you if you don't have one. Its default only blocks the
/wp-admin/area (and allows one file inside it that sites need). If you see far more blocked, a plugin or a hand-made robots.txt file added the rules. - Shopify generates a default robots.txt that blocks pages like the cart, checkout and customer account. Those showing up in this warning is normal. Shopify lets you change the rules by adding a
robots.txt.liquidtemplate to your theme, which replaces the default file, so only do that if you know which rules you need.
Tell Search Console you fixed it
Once every affected page you care about is fixed, open the issue in the Page indexing report and click Validate fix. Google says validation typically takes up to about two weeks, sometimes longer, and emails you as it progresses. Don't click it again while it's running. If you never validate, Google still updates the count as it recrawls the pages.
20
Detection rules
5–30 min
Check intervals
Free
1 site
04Stay ahead of it
How to keep robots.txt from causing surprises
Keep a note of every rule
Write down why each Disallow line exists. When a warning shows up later, you can tell at a glance whether the block is on purpose.
Re-read robots.txt after changes
Check the live file after every SEO plugin change, theme switch or migration. These are the moments rules get added or replaced.
Watch the Page indexing report
A jump in "Blocked by robots.txt" or "Indexed, though blocked" pages after a change is the clearest early sign a rule went wider than planned.
Get told when the worst case happens
Sitewatch alerts you the day your robots.txt starts blocking your whole site, or starts failing to load. It doesn't watch single-page rules or noindex tags, so keep checking Search Console for those.
Indexed, though blocked by robots.txt: FAQ
Not necessarily. It's a warning, not an error. If the pages are ones you blocked on purpose, such as the cart or internal search, you can usually leave them. It's only a problem if the pages are ones you want people to find, or ones you wanted removed from Google entirely.
Because robots.txt only controls crawling. Google says it can still index a blocked address if it's linked from other places, using information such as the link text. It never reads the page itself, so the result usually has little or no description.
Add a noindex tag to the page, then remove the robots.txt rule that blocks it so Google can visit and see the noindex. Google says a page blocked by robots.txt never has its noindex seen. Leaving the block in place keeps the page stuck in this state.
No. Google states that specifying the noindex rule in the robots.txt file is not supported. Noindex has to be on the page itself, as a meta tag, or sent as a header.
Google has to recrawl the affected pages first. If you click Validate fix in the Page indexing report, Google says validation typically takes up to about two weeks, and sometimes longer.
Sitewatch alerts you when your robots.txt starts blocking search engines from your whole site, or stops loading, and the free scan flags a site-wide block too. It doesn't track rules that block single pages or folders, and it doesn't check for noindex tags. For those, Search Console's Page indexing report is the place to look.
06Keep reading
Related resources
Find out the day robots.txt blocks your whole site
Sitewatch alerts you when robots.txt starts blocking search engines or stops loading. Free plan for 1 site.