“Indexed, though blocked by robots.txt” indicates that Google indexed URLs even though they were blocked by your robots.txt file.
Google has marked these URLs as “Valid with warning” because they’re unsure whether you want to have these URLs indexed. In this article you’ll learn how to fix this issue.
Here’s what this looks like in Google Search Console’s Index Coverage report, with the amount of URL impressions shown:
Normally, Google wouldn’t have indexed these URLs but apparently they found links to them and deemed them important enough to be indexed.
It’s likely that the snippets that are shown are suboptimal, such as for instance:
How to fix “Indexed, though blocked by robots.txt”
Indexed, though blocked by robots.txt fix for WordPress
The process to fixing this issue for WordPress sites is the same as described in the steps above, but here are some pointers to quickly find your robots.txt file in WordPress:
WordPress + Yoast SEO
If you’re using the Yoast SEO plugin, follow the steps below to adjust your robots.txt file:
WordPress + Rank Math
If you’re using the Rank Math SEO plugin, follow the steps below to adjust your robots.txt file:
WordPress + All in One SEO
If you’re using the All in One SEO plugin, follow the steps below to adjust your robots.txt file:
Indexed, though blocked by robots.txt fix for Shopify
Shopify doesn’t allow you to manage your robots.txt from their system, so you’re working with a default one that’s applied to all sites.
Perhaps you’ve seen the “Indexed, though blocked by robots.txt” message in Google Search Console or received a “New index coverage issue detected” email from Google about it. We recommended to always check out what URLs this concerns, because you don’t want to leave anything to chance in SEO.
Review the URLs, and see if any important URLs are blocked. If that’s the case, you’ve got two options which require some work, but do allow you to change your robots.txt file on Shopify:
Whether or not these options are worth it to you depends on the potential reward. If it’s sizable, look into implementing one of these options.
You can take the same approach on the Squarespace platform.