What happens when you block a page via robots.txt and add a canonical: a test

I wrote this as a LinkedIn post and I got some eyebrows raised, so I decided to make the test public. Here’s what I wrote:

What happens when a page is blocked via robots.txt, but has a canonical pointing to an indexable URL? What I wrote above is only partially right: the results depend whether Google already knows the page or not.
- If the page was already indexed, Google will bypass the robots.txt and only read the final URL
- If the page is unknown to Google, it’ll respect robots.txt.
This is not new, but I was caught by surprise thinking I solved a problem. When I went to check before closing the ticket, I realized something was wrong.
The setup
I used two pages on my own site for this test. Both received the same treatment: blocked via robots.txt and given a canonical tag pointing to a separate, indexable URL.
Scenario One: Page is known to Google
- Page is indexed: [https://www.guspelogia.com/product-management-principles-seo](- https://www.guspelogia.com/product-management-principles-seo)
- Later, blocked via robots.txt
- However, page has canonical to another, indexable URL - [https://www.guspelogia.com/seo-product-manager-job](- https://www.guspelogia.com/seo-product-manager-job)
Scenario Two: Page is unknown to Google
- Page is new, not indexed: [https://www.guspelogia.com/seo-product-manager-job-2026](- https://www.guspelogia.com/seo-product-manager-job-2026)
- Later, blocked via robots.txt
- Has a canonical to another, indexable URL: https://www.guspelogia.com/seo-product-manager-job
Scenario 1: The page was already indexed
The first page had been live and indexed by Google for years. This week, I added a disallow rule on robots.txt and added a canonical pointing to another page that was already indexed and ranking.

My initial expectation was that Google would stop crawling the blocked URL and return a “blocked by robots.txt”. I know Google can discover any URL blocked via robots.txt through other methods, such as external links, but I was caught on a scenario where I had to stop Google from crawling a large number of pages. I thought blocking the URLs via robots.txt would solve the issue, but when testing it, I realized I had to do more.

Even though this known URL had a robots.txt exclusion, GSC still rendered the page
Google effectively ignored the robots.txt block and followed the canonical to the destination URL. The indexable page at the other end was already known to Google, and that seemed to be enough for it to trust the signal and act on it — even though it couldn’t re-crawl the source.
This makes sense when you think about how Google treats robots.txt: it’s a crawling directive, not an indexing one. Google can still know a page exists without being able to crawl it. When it sees a canonical pointing to a URL it already trusts, it has enough information to consolidate.
Google is looking at the final destination, and this is by design. I learned about it on this blog post a few months ago: Why Doesn’t GSC Live URL Test Show a 301 for Redirects?.
Scenario 2: The page was new, never indexed
After I made this post on LinkedIn, my good friend Paulo Andraus pointed that “Google won’t find these URLs if they are new”, so I decided to test both scenarios. He was right!
The page in this scenario had never been indexed, Google had no prior knowledge of it. I applied the exact same treatment: blocked via robots.txt, canonical pointing to an indexable URL.
This time, the robots.txt block held. It hit the robots.txt first, saw the block, and stopped there. It never reached the canonical tag and never discovered the destination through this path.\

First screenshot shows the Inspect URL results; Second shows the status after “Test Live URL”
Is this a GSC bug or will Google keep indexing the content in Scenario 1?
Since GSC allows us to request reindexing, I got curious: is Google still reading new content on this page I blocked via robots.txt? To test it, I did the most SEOy thing and updated the page title.
I realized this is a hit-and-miss scenario. I updated the page in scenario one, did the same checks and suddenly Google returned a “blocked by robots.txt”. I was very annoyed and not too far from writing an apology post. But I’m a little stubborn, so I did it again.
A new URL, now with time stamps:
| Time | Action |
|---|---|
| 12h51 | Blocked /business-case-menu-footer via robots.txt |
| 12h55 | Added canonical → /combining-internal-and-external-links-kpi |
| 13h27 | Live test on GSC — page is indexable |
| 13h31 | Updated page title — GSC reads the new title |
| 13h37 | Requested indexing (I’ll update once/if the page title changes on Google) |

Wrapping up
The two scenarios reveal something worth keeping in mind when you’re trying to consolidate or clean up pages:
- Given there are different reactions to this — sometimes GSC respects robots, sometimes it doesn’t — I wonder if this is a bug. Maybe GSC doesn’t read robots.txt all the time? I left 40 minutes in between updating robots.txt > update canonical > check on GSC.
- I’m still waiting to see if the page title change goes through. It didn’t happen in the first 30 minutes.
- Don’t assume
robots.txtor canonical tags will do what you expect. Test and validate. Canonicals are hints, not directives — it could even be that in some cases Google accepts the canonical, in others it doesn’t (after all, none of these posts are really equivalent content, I just went berserk to test this). - Indexed pages blocked by
robots.txtwill not be removed from the index, asrobots.txtis a crawling, not an indexing tool.