How to fix "Indexed, though blocked by robots.txt" in Search Console
This message means Google knows a page exists but your robots.txt file stops it from reading the page. To fix it, decide whether the page should appear in search: if yes, remove the blocking rule; if no, let Google read the page and add a noindex tag.
Search Console can show two similar messages: "Blocked by robots.txt" and "Indexed, though blocked by robots.txt". Both come from the same cause, a rule in your robots.txt file that tells Google not to fetch a page. This guide explains what each one means, how to find the rule responsible and what to change.
What you see in Search Console
In the Page indexing report (under Indexing, then Pages) you may see one or both of these:
- Blocked by robots.txt: Google found the URL but was told not to crawl it, so the page is not indexed.
- Indexed, though blocked by robots.txt: Google could not crawl the page, but it listed the URL anyway, usually because other pages link to it.
The second one surprises most people. Robots.txt controls crawling (whether Google may read a page). It does not control indexing (whether a URL may appear in results). A blocked page can still show up in search with no description, or with a line saying no information is available, because Google never saw the content.
Why it matters
What it costs depends on which side of the problem you are on.
- You want the page found. If a service page, product or blog post is blocked, Google cannot read its text, so it ranks poorly or not at all. That means lost enquiries and sales.
- You do not want the page found. If a thank you page, internal search result or private area is listed, visitors can land on pages you meant to hide. That looks untidy and can leak information.
- Robots.txt is not security. The file is public and anyone can read it. Never rely on it to protect private content.
Not every blocked URL is a problem. Many sites deliberately block cart, checkout, login and internal search pages. The task is to separate intentional blocks from accidental ones.
How to check your site (free)
- Open your robots.txt file in a browser by adding
/robots.txtto your domain, for exampleyourdomain.com/robots.txt. - In Search Console, open Indexing, then Pages, and click the "Blocked by robots.txt" or "Indexed, though blocked by robots.txt" row to see the affected URLs.
- Click one URL, then choose Inspect URL. The result shows whether crawling is allowed, and the live test tells you what Google sees right now.
- In Search Console Settings, open the robots.txt report (under Crawling) to see which version of the file Google fetched and whether it had errors.
- Compare the URL with the
Disallowlines in the file. A line such asDisallow: /blog/blocks every address starting with that path.
A site-wide block looks like this and usually means something went wrong, such as a staging setting left on after launch:
User-agent: *
Disallow: /
If your whole site is affected, see robots.txt blocking the whole site.
How to fix it
First decide what you want for each affected URL. There are three cases.
Case 1: the page should be in search. Remove or narrow the Disallow rule that matches it. Use a more specific rule if you only meant to block part of a section. Save the file, then check /robots.txt in your browser to confirm the live version changed.
Case 2: the page should stay out of search. This is the case people get wrong. Blocking in robots.txt does not remove a URL, and Google does not follow a noindex line written inside robots.txt. Instead:
- Remove the
Disallowrule for that page so Google can crawl it. - Add a
noindexrobots meta tag to the page, or send anX-Robots-Tag: noindexheader. - Wait until Google recrawls and the page drops out of results.
- Only then, if you want, block it again.
If Google cannot crawl the page, it can never see the noindex instruction. More on that in excluded by noindex.
Case 3: the page is private. Put it behind a login or password. That is the only dependable way to keep content away from both visitors and search engines. For something urgent, the Removals tool in Search Console hides a URL temporarily while you apply a lasting fix.
Where to change robots.txt on common platforms
Menu names change between versions and themes, so treat these as starting points.
- WordPress: WordPress creates a virtual robots.txt. Check Settings, then Reading, for the "Discourage search engines from indexing this site" box. SEO plugins such as Yoast SEO and Rank Math usually include a file editor for robots.txt. See the WordPress guide.
- Shopify: Edit the
robots.txt.liquidtemplate in your theme code. Shopify blocks some pages by default, such as cart and checkout, and that is normal. - Wix: Look for a robots.txt editor in the SEO tools or marketing settings. Wix also has page level settings for hiding a page from search.
- Webflow: Open Site settings, then SEO, and look for the robots.txt field.
- Squarespace: You generally cannot edit robots.txt directly. Use the per page option to hide a page from search engines instead.
- WooCommerce: Cart, checkout and account pages are usually blocked on purpose. Check your SEO plugin or the file itself for anything broader.
- Magento: Look under Content, then Design, then Configuration, for the Search Engine Robots setting, or edit the
robots.txtfile in the site root.
If your site is custom built, the file normally sits in the top folder of your website, and your developer can change it.
How to confirm the fix worked
- Open
yourdomain.com/robots.txtand check that your change is live. - In Search Console, inspect the affected URL and run the live test. It should say crawling is allowed.
- Return to the Page indexing report, open the issue and click Validate fix. Google then rechecks the URLs.
- Be patient. Validation can take days to a few weeks, and results depend on how often Google visits your site.
For pages you wanted removed, search for the exact URL in Google after a few weeks. It should no longer appear once the noindex has been read.
How to stop it coming back
- Keep a copy of your working
robots.txtso you can compare after any change. - Before launching a redesign or moving a site, check that staging blocks have been removed, including any search engine visibility setting.
- After plugin, theme or platform updates, open
/robots.txtagain. - Review the Page indexing report monthly, and expect a few intentional blocks.
- Never use robots.txt as the way to hide a page you want gone from Google.
SiteMonday covers this in week 41, the Search Console deep dive, where the written report and ranked fix list point out blocked URLs so you or your developer know what to change first.
Step by step for your platform
- Blocked by robots.txt in Search Console on WordPress
- Blocked by robots.txt in Search Console on Shopify
- Blocked by robots.txt in Search Console on Wix
- Blocked by robots.txt in Search Console on Webflow
- Blocked by robots.txt in Search Console on Squarespace
- Blocked by robots.txt in Search Console on WooCommerce
- Blocked by robots.txt in Search Console on Magento
Questions
Why does Google index a page that robots.txt blocks?
Robots.txt only stops Google from reading a page, not from listing its URL. If other pages link to it, Google can still show the address in results without any description.
Will adding noindex to robots.txt remove the page?
No. Google does not support a noindex rule inside robots.txt. Put the noindex tag on the page itself and let Google crawl the page so it can see it.
Is "Blocked by robots.txt" always an error?
No. Many sites block cart, checkout, login and internal search pages on purpose. It only needs fixing when an important page you want in search is blocked.
How long until Search Console shows the fix?
After you click Validate fix, it often takes days to a few weeks. The time depends on how often Google crawls your site.
Can I use robots.txt to hide private pages?
No. The file is public and only asks crawlers to stay away. Use a login or password for anything that must stay private.
Do I need a developer to fix this?
Not always. On many platforms you can edit robots.txt or a page setting yourself, but custom built sites usually need a developer to change the file.