Last Updated on by Azib Yaqoob
“Indexed, though blocked by robots.txt” means Google has put a URL in its index but was not allowed to crawl it. It is a warning, not a penalty. The fix depends on one question: do you want this page in Google or not?
Quick answer: If you want the page in search, remove the robots.txt rule that blocks it. If you want it out of search, remove the block and add a
noindextag instead, because robots.txt stops Google from seeing the tag. Then use Validate fix in Google Search Console. Google says robots.txt is not the correct way to keep a page out of its index.
Table of Contents
What the warning means
Robots.txt controls crawling, not indexing. If your file says Disallow for a URL, Googlebot will not fetch the page. But if other pages or sites link to that URL, Google can still list it in results using only the URL and anchor text. Because Google could not read the page, the snippet is usually missing or very limited.
| Tool | What it controls | Can it keep a page out of Google? |
|---|---|---|
| robots.txt Disallow | Whether Google can crawl the URL | Not reliably; the URL can still be indexed |
| noindex meta tag or header | Whether Google may index the page | Yes, but Google must be able to crawl the page to see it |
| Password protection | Whether anyone can open the page | Yes |
| Canonical tag | Which duplicate version Google prefers | No, it is a hint for duplicates |

Step 1: Find the affected URLs in Search Console
- Open Google Search Console and pick your property.
- Go to Indexing, then Pages.
- Scroll to the list of reasons and click Indexed, though blocked by robots.txt.
- Export or copy the URLs. Look for patterns such as a folder, a file type or URLs with
?parameters.
Not sure what indexing even means in this context? See the difference between crawling and indexing.
Step 2: Decide what each URL should do
| Page type | Example | What to do |
|---|---|---|
| Page you want in search | A service page, a blog post | Remove the Disallow rule |
| Page you want out of search | Thank-you page, internal search results, test pages | Allow crawling and add noindex |
| Private area | Admin, account or checkout pages | Use a login or noindex; robots.txt alone will not hide them |
| Duplicate or parameter URLs | Filtered or sorted URLs | Use canonical tags; see our canonical URL guide |
Here is a hypothetical example. An HVAC company’s site has a rule Disallow: /services/ left over from a redesign. Its service pages are linked from everywhere, so Google indexes them but cannot read them. The fix is to delete that rule.
Step 3: Find the rule that blocks the URL
Open yourwebsite.com/robots.txt in a browser. Check the file for a Disallow line that matches your URL. Google’s old robots.txt Tester has been replaced, so use these instead:
- The robots.txt report in Search Console (Settings, then robots.txt), which shows the files Google found, when it last fetched them and any parsing problems.
- The URL Inspection tool: paste the URL and check the crawl allowed status.

Common culprits on WordPress sites:
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
# Problem rules to look for:
Disallow: /category/
Disallow: /wp-content/
Disallow: /*?
Disallow: /The first two lines are the WordPress default and are fine. The lines under the comment can cause trouble. Disallow: / blocks the whole site. It is often switched on by the Discourage search engines from indexing this site option in Settings, Reading, which developers sometimes forget to turn off after launch.


Step 4: Edit your robots.txt
| Where | How |
|---|---|
| Yoast SEO | SEO, Tools, File editor |
| Rank Math | Rank Math SEO, General Settings, Edit robots.txt |
| All in One SEO | All in One SEO, Tools, Robots.txt Editor |
| Hosting file manager or FTP | Edit the robots.txt file in the site’s root folder (often public_html) |
Menu names can change between plugin versions, so look for the equivalent if you do not see these exact labels. If WordPress is serving a virtual robots.txt and you upload a physical file, the physical file wins.
To open up a blocked area while keeping a smaller part blocked, use a more specific Allow rule:
User-agent: *
Disallow: /private/
Allow: /private/public-guide/Step 5: Add noindex when the page should leave Google
First remove the Disallow rule so Google can crawl the page. Then add a noindex directive. In WordPress, set the page to noindex in your SEO plugin’s advanced settings. Google will see the tag the next time it crawls the page and drop it from the index. After the page has dropped out, you can decide whether to block crawling again, although many sites leave it alone.
<meta name="robots" content="noindex">Do not use robots.txt and noindex together on the same URL. The block hides the noindex from Google, which is how this warning appears in the first place.
A hypothetical example for a plumber: the site blocks /?s= search URLs, but a few of them were linked from a blog sidebar. Google indexes them without content. The cleanest fix is to remove the sidebar links, allow crawling and add noindex to internal search results.
Step 6: Validate the fix
- Reload your robots.txt in the browser and confirm the change is live.
- In Search Console, open the issue and click Validate fix.
- Wait. Google re-checks the URLs over time, which can take days or longer.
- If validation fails, inspect a sample URL to see which rule still blocks it.
Common causes on WordPress sites
- Leftover launch settings: the Reading setting that discourages search engines, or a blanket
Disallow: /from a staging site. - Over-eager rules: blocking
/category/,/tag/or/wp-content/to “save crawl budget”, which can also hide images and scripts Google needs to render pages. - Search and filter URLs: blocking
/?s=or parameter URLs that other pages still link to. - Plugin or theme rules: some plugins add their own Disallow lines. Review the file after installing a new SEO, membership or shop plugin.
- Old rules: lines that made sense before a redesign or a move to new URLs.
To stop it coming back, keep robots.txt short, review it after redesigns and plugin changes, and check the Pages report in Search Console once a month.
Do you need a robots.txt file at all?
Not every site does. A small business site with nothing to hide can work without one. A robots.txt file is useful when you want to keep crawlers out of admin areas, internal search results or endless parameter URLs, and to point to your sitemap. A bad file can block your whole site, so keep it short. To check your site, open /robots.txt and ask whether any rule hides pages that should rank. Also make sure your XML sitemap does not list blocked pages.
How this affects AI search (ChatGPT, Google AI Overviews)
Google says a page must be indexed and eligible to appear in Search with a snippet to be linked in AI Overviews or AI Mode, and it recommends allowing crawling in robots.txt. Other AI crawlers have their own user agents and rules, so check each provider’s documentation before blocking or allowing them. If you are not sure whether your site is visible to AI tools, request our free AI visibility check.
FAQ
Is “Indexed, though blocked by robots.txt” bad for SEO?
It is a warning. It matters if the page should rank, because Google cannot read it. It also matters if the page should be private, because it may still appear in results.
How long does the fix take?
Google needs to recrawl the URLs. That can take days or weeks. Validate the fix and be patient.
Should I block category or tag pages?
Usually not with robots.txt. If you do not want them in search, use noindex so Google can read the tag.
Will adding noindex remove the page immediately?
No. Google must recrawl the page first. For urgent removals, use the Removals tool in Search Console as a temporary measure. Our guide on removing old pages from Google explains the options.
Can I block pages with robots.txt and canonicalize them?
No. If Google cannot crawl a page, it cannot see the canonical tag. Allow crawling first.
Next step
If your service pages are not showing up in search or in AI answers, our local SEO and AI search service starts with a technical check like this one.



