---
title: Did a deploy noindex your pages? The rules Google applies, and how to catch it
description: A page can drop out of search while every uptime check stays green: a staging robots.txt reaches production, an SEO plugin flips a setting, a CDN rule adds an X-Robots-Tag. Here are the rules Google documents for noindex, robots.txt and canonicals, a real run against our own sign-in page, and how to check your key pages after every deploy.
canonical: https://watchfor.io/blog/did-a-deploy-noindex-your-pages
---

# Did a deploy noindex your pages? The rules Google applies, and how to catch it

2026-11-30 · WatchFor Team · Guides · guides, seo, web, monitoring

A page can drop out of search while every uptime check stays green: a staging robots.txt reaches production, an SEO plugin flips a setting, a CDN rule adds an X-Robots-Tag. Here are the rules Google documents for noindex, robots.txt and canonicals, a real run against our own sign-in page, and how to check your key pages after every deploy.

An uptime check asks one question: did the page answer? A page can answer
`200 OK` and still be gone from search. Nothing is down, so nothing alerts.
The first sign is a traffic report weeks later.

The causes are small and easy to ship:

- a CMS setting or an SEO plugin option that adds `noindex` to a page
  template;
- the staging robots.txt, with its `Disallow: /`, copied to production;
- a CDN or proxy rule that adds an `X-Robots-Tag: noindex` header to more
  responses than intended;
- a canonical template that points every product page at its category.

Each of these is a rule search engines follow, and the rules are precise.
This guide goes through them as Google documents them, runs the free
[Indexability Checker](/indexability-checker) against a page on our own site
that robots.txt blocks on purpose, and then shows how to keep checking your
key pages after every deploy.

The rules below are quoted from Google Search Central. Our tools also give a
verdict for Bingbot, using Bingbot's own robots.txt group and the rules that
name `bingbot`; this post does not restate Bing's documentation.

## noindex: the meta tag and the header are the same rule

There are two ways to say "do not index this page":

```html
<meta name="robots" content="noindex">
```

```http
HTTP/2 200
content-type: text/html
x-robots-tag: noindex
```

Google's [block-indexing page](https://developers.google.com/search/docs/crawling-indexing/block-indexing)
is plain about it: "They have the same effect; choose the method that is more
convenient for your site". The header also works for files that have no HTML,
such as PDFs. A few details from the
[robots meta tag reference](https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag)
that matter when you go looking for one:

- `none` is "Equivalent to noindex, nofollow."
- Names and values are case-insensitive, so `NOINDEX` counts.
- Google "will respect robots meta tags in the body section of an HTML
  document as well", so a widget that writes a tag into `<body>` still counts.
- "Multiple X-Robots-Tag headers can be combined within the HTTP response",
  or one header can carry a comma-separated list.
- `noindex` inside robots.txt does nothing: "Specifying the noindex rule in the
  robots.txt file is not supported by Google."

From a terminal, both places take one line each. Use a GET, not `curl -I`:
some servers answer a HEAD request with different headers.

```bash
curl -s -o /dev/null -D - https://example.com/pricing | grep -i '^x-robots-tag'
curl -s https://example.com/pricing | grep -io '<meta[^>]*name="\(robots\|googlebot\)"[^>]*>'
```

This sends curl's own user agent from your own address. A rule that targets
crawlers by user agent, or a header your CDN adds only at some locations, can
still hide from it.

## Rules for one crawler add up with rules for all

A rule can name a crawler. In the meta tag, Google reads two names besides
`robots`: "Google supports two user agent tokens in the robots meta tag; other
values are ignored": `googlebot` and `googlebot-news`. In the header, the name
goes before the rules:

```http
X-Robots-Tag: googlebot: noindex
```

"Rules specified without a user agent are valid for all crawlers." When both
kinds are present, they do not replace each other. Google's own example:

```html
<meta name="robots" content="nofollow">
<meta name="googlebot" content="noindex">
```

The page "will be interpreted as having a noindex, nofollow rule when crawled
by Googlebot", because "the search engine will use the sum of the negative
rules". And when rules conflict, "the more restrictive rule applies."

In practice: an `index` in one place never cancels a `noindex` in another. If
the template says `index, follow` and a header rule adds `noindex`, the page is
not indexable.

## robots.txt: one group, the longest rule, ties go to Allow

robots.txt decides whether a crawler may fetch a URL at all. Three rules from
Google's [robots.txt specification](https://developers.google.com/crawling/docs/robots-txt/robots-txt-spec)
decide which line applies:

1. **One group per crawler.** "Only one group is valid for a particular
   crawler." Google picks the group with the most specific user agent that
   matches, and "User agent specific groups and global groups (`*`) are not
   combined." So if you add a `User-agent: Googlebot` group with a single
   line, Googlebot ignores everything in the `*` group, including the
   `Disallow` lines you relied on.
2. **The longest matching path wins.** "crawlers use the most specific rule
   based on the length of the rule path." For `/page`, `allow: /p` beats
   `disallow: /`.
3. **A tie goes to Allow.** "In case of conflicting rules, including those with
   wildcards, Google uses the least restrictive rule." With `allow: /folder`
   and `disallow: /folder`, `/folder/page` is allowed. This is the opposite of
   the meta tag rule above, where the more restrictive one wins.

Paths are case-sensitive: `Disallow: /Admin/` does not block `/admin/`.

Our own robots.txt shows rule 2 at work. The `*` group starts on line 38:

```bash
$ curl -s https://watchfor.io/robots.txt | sed -n '38,39p;51p'
User-Agent: *
Allow: /
Disallow: /auth/
```

For `/auth/sign-in`, both `Allow: /` (one character) and `Disallow: /auth/`
(six characters) match. The longer one wins, so the page is blocked. The file
has no `Googlebot` or `Bingbot` group, so both crawlers use `*`.

## Blocked is not the same as kept out

This one is easy to get wrong. A `Disallow` stops crawling. It does not stop
indexing.

Google's robots.txt spec: "Google can't index the content of pages which are
disallowed for crawling, but it may still index the URL and show it in search
results without a snippet." The
[introduction to robots.txt](https://developers.google.com/search/docs/crawling-indexing/robots/intro)
says it directly: "it is not a mechanism for keeping a web page out of
Google".

And a blocked page cannot tell the crawler anything else either. From the
block-indexing page: "If the page is blocked by a robots.txt file or the
crawler can't access the page, the crawler will never see the noindex rule,
and the page can still appear in search results, for example if other pages
link to it."

So `Disallow` in robots.txt plus `noindex` on the page does not do what it
looks like: the `noindex` is never read. To keep
a page out of the index, let crawlers fetch it and serve `noindex`.

## When robots.txt itself fails

What robots.txt answers matters as much as what it says. From the spec, and
Google's page on [HTTP status codes](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes):

| robots.txt answers | What Google does |
| --- | --- |
| `2xx` | Processes the file "as provided by the server". |
| `3xx` | Follows at least five redirect hops, and then "stops and treats it as a 404 for the robots.txt file". |
| `4xx`, except `429` | Treats it "as if a valid robots.txt file didn't exist", so "there are no crawl restrictions". |
| `5xx`, `429`, a timeout or a reset connection | A server error. For the first 12 hours "Google stops crawling the site but keeps trying to fetch the robots.txt file". For the next 30 days it uses the last good version. With no cached copy, it assumes no restrictions. After 30 days it behaves as if there is no file if the site is otherwise available, and stops crawling if the site has availability problems. |

Two deploy-day failures follow from that table. A robots.txt that starts
answering `503` (an origin that is not ready, a firewall rule that matches it)
pauses crawling of the whole site. A robots.txt that starts answering `404`
opens everything, including the paths you meant to keep crawlers out of.
Google "generally caches the contents of robots.txt file for up to 24 hours",
so a short mistake can outlive the fix by a day.

## Canonical is a hint

A canonical says which URL you prefer when several show the same content. It
can sit in the HTML head or in an HTTP header:

```html
<link rel="canonical" href="https://example.com/shoes/blue">
```

```http
Link: <https://example.com/shoes/blue>; rel="canonical"
```

Google's [canonicalization docs](https://developers.google.com/search/docs/crawling-indexing/canonicalization)
call it "a hint, not a rule". The
[duplicate URL guide](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls)
ranks the signals: a redirect and `rel="canonical"` are each "A strong signal",
a sitemap entry is "A weak signal". It also lists the mistakes that matter
after a deploy:

- The HTML element is "only accepted if it appears in the `<head>` section".
- "Don't specify different URLs as canonical for the same page using different
  canonicalization techniques", for example one URL in the header and another
  in the HTML.
- "make sure that JavaScript doesn't change the canonical link element".

A template bug that points every product at its category sends Google a strong
signal that the category should become canonical.

## Three more rules, and four that are not about indexing

**JavaScript.** "When Google encounters the noindex tag, it may skip rendering
and JavaScript execution." A `noindex` in the HTML the server sends can stop
Google before your JavaScript removes it. Google's advice, from
[JavaScript SEO basics](https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics):
"If you do want the page indexed, don't use a noindex tag in the original page
code."

**`unavailable_after`.** "Do not show this page in search results after the
specified date/time." The date must be in a widely adopted format such as RFC
822, RFC 850 or ISO 8601, and "The rule is ignored if no valid date/time is
specified." A template that keeps a past date hides every page built from it.

**Status codes.** "URLs that are already indexed and return a 4xx status code
are removed from the index." A `5xx` keeps them for a while: "already indexed
URLs are preserved in the index, but eventually dropped". And "an HTTP 2xx
(success) status code doesn't guarantee indexing". A redirect hands the job to
its target: a `301` or `308` is a "strong signal", a `302` or `307` a "weak
signal" ([more on that](/blog/301-vs-302-redirects)).

**Not about indexing:** `nosnippet`, `max-snippet`, `nofollow` and
`noimageindex` change snippets, links and images, not whether the page is
indexed. `noarchive` and `nocache` "aren't used by Google Search and are
ignored."

## A real run: our own sign-in page

We pointed the free [Indexability Checker](/indexability-checker) at
`https://watchfor.io/auth/sign-in`. The result came back in 0.1 seconds from
Vilnius:

![The free Indexability Checker result for https://watchfor.io/auth/sign-in: Blocked by robots.txt for Googlebot and Bingbot. robots.txt answered HTTP 200, 1,235 bytes, and the matching rule is Disallow: /auth/ on line 51 in the user-agent group *. Meta robots says index, follow, there is no X-Robots-Tag, and the canonical points to the page itself in the HTML link, with no Link header](/blog/did-a-deploy-noindex-your-pages-indexability-checker.webp)

Read it from the top:

- **Verdict per engine.** Not indexable for Googlebot or Bingbot, and the
  reason is the same for both: blocked by robots.txt.
- **The exact rule.** `Disallow: /auth/`, line 51, user-agent group `*`, from a
  robots.txt that answered `HTTP 200, 1,235 bytes`. That is the line we found by
  hand above.
- **Robots directives.** The page's own meta tag says `index, follow`, and
  there is no `X-Robots-Tag`. None of it matters to a crawler that may not
  fetch the page.
- **Canonical.** It points at the page itself in the HTML; there is no `Link`
  header.

The same facts from a terminal:

```bash
$ curl -s https://watchfor.io/auth/sign-in | grep -o '<meta name="robots"[^>]*>'
<meta name="robots" content="index, follow"/>
```

We block `/auth/` on purpose: a sign-in form has nothing for a search engine
to read. By the rules above, the cost is that the URL can still be listed
without a snippet if other pages link to it. If keeping it out of results ever
mattered, the fix would be the opposite of what most people try first: remove
the `Disallow` and serve `noindex`.

The checker also shows the status code and redirect chain, the title, meta
description, H1, hreflang links, structured-data types, and whether the
sitemap lists the page.

## Checking key pages after every deploy

A one-off check answers "is this page fine now". The question after a deploy
is "did anything change on the pages that matter". That is what the new
[SEO monitor](/seo-monitoring) is for.

One monitor covers one site and a list of its key pages. For each page you say
what it must be:

- **Must be indexable** or **Must stay out of the index**;
- a canonical that points at **itself** (or is absent), **any** URL, or a URL
  you give;
- the HTTP status it should answer, `200` by default (set over the API).

Each page gets a verdict per search engine, for Googlebot, Bingbot or both,
each read with its own robots.txt group and the rules that name it. In the
Acme demo organization, a monitor watches six pages of watchfor.io. To show
what a difference looks like, we set `/auth/sign-in` to **Must be indexable**:

![The SEO monitor "Marketing site — key pages" in the Acme demo organization, checking https://watchfor.io/ every hour and every 30 seconds during the incident. The Indexability card says 1 page differs of 6, the robots.txt card says Unchanged with HTTP 200, and the Pages table lists /auth/sign-in as Differs: status 200, not indexable for Googlebot and Bingbot because it is blocked by robots.txt, canonical ok, 0 changes, while the home page is indexable for both](/blog/did-a-deploy-noindex-your-pages-monitor.webp)

Opening the page shows every signal behind the verdict, next to what was
expected:

![The page detail dialog for /auth/sign-in: expected Indexable, canonical itself, HTTP 200. Googlebot and Bingbot both read Not indexable, blocked by robots.txt, with the rule Disallow: /auth/ on line 51 in group *. Robots meta tags index, follow; no X-Robots-Tag header; the canonical in the HTML is https://watchfor.io/auth/sign-in with no Link header, as expected; HTTP status 200 and no redirect chain](/blog/did-a-deploy-noindex-your-pages-page-detail.webp)

The first check of each page becomes its **baseline**: title, meta
description, H1, canonical, robots directives, hreflang links, structured-data
types, status and redirect target, plus the site's robots.txt (comments and
blank lines ignored). Every later check compares with it and lists what
changed, old → new. A change you made on purpose is accepted on the monitor
page, for all pages or one, by an owner or admin, or over the API with
`POST /v1/monitors/{id}/baseline`. Every accept is written to the Activity Log.

### When it alerts

Nine rules; six are on from the start:

| Rule | Default | Fires when |
| --- | --- | --- |
| Page not indexable | on, critical | A page's verdict for a selected engine differs from what you expect, in either direction. |
| Canonical points elsewhere | on, warning | A canonical, from the HTML or the `Link` header, does not point where you expect. |
| robots.txt unavailable | on, critical | robots.txt answers `5xx`, `429` or nothing. A `4xx` is no alert. |
| robots.txt changed | on, warning | robots.txt differs from the accepted baseline. |
| SEO elements changed | on, warning | A tracked element of a page differs from the baseline. |
| noindex hidden by robots.txt | on, warning | A blocked page also carries a `noindex` the crawler can never read, whatever you expect of the page. |
| Pages failing to load | off, warning | A page answers `5xx` or nothing, so it could not be judged. |
| Page missing from sitemap | off, warning | A page is not in the XML sitemaps. Needs the sitemap check. |
| Rendered page differs | off, warning | The page reads differently after its JavaScript runs. Needs the real-browser check. |

A second check confirms a finding before an incident opens, and one clean
check closes it. The incident names the pages and the reason:

![The incident root cause for the SEO monitor: Page not indexable, critical. What happened explains that nothing is down and the cause is in robots.txt, the page templates or response headers. Expected: every page indexable, or kept out of the index, as you expect it. Detected: /auth/sign-in is not indexable for Bingbot and Googlebot: robots.txt blocks the crawler. The timeline shows the issue first detected at 07:45:15, confirmed from Frankfurt and London, and a notification sent via Telegram](/blog/did-a-deploy-noindex-your-pages-incident.webp)

Checks run every hour by default and as often as every 5 minutes. During an
open incident the monitor above checked every 30 seconds. Two options are off
by default: checking that each page is listed in the XML sitemaps, and reading
each page again in a real browser after its JavaScript runs (up to 10 pages,
where your plan includes browser mode). The SEO monitor is on every plan; it
counts as one monitor, and the pages per monitor are 3 on Free, 10 on Starter,
25 on Pro and 50 on Business and Enterprise. The settings are in the
[docs](/docs/monitors/performance#seo-monitor).

## What it does not do

- **It is not a crawler.** It checks the pages you list, up to 50 per monitor.
  It does not follow links, so a page you did not list is not checked.
- **It reads the live page, not Google's index.** There is no Search Console
  connection. It tells you whether anything on your side keeps a page out. For
  Google's own view, whether a URL is indexed and which canonical Google chose
  next to the one you declared, use Search Console's URL Inspection, which
  reports [both](https://developers.google.com/webmaster-tools/v1/urlInspection.index/UrlInspectionResult).
- **It is not the real Googlebot.** You can send a Googlebot or Bingbot user
  agent, but requests come from WatchFor's addresses. A site that verifies
  crawlers by IP address may answer it as it answers any visitor.
- **An outage is not a verdict.** A page that answers `5xx` or times out is
  reported as failing to load, not as not indexable. Outages belong to an
  [HTTP monitor](/http-monitoring).

## A short checklist for the next deploy

1. Search the HTML of your key templates for `noindex` before release, in the
   meta tag and in the framework's head settings.
2. Diff robots.txt between staging and production. Never deploy staging's.
3. Check the response headers of an HTML page and of a PDF for
   `X-Robots-Tag`, at the origin and through the CDN.
4. Keep pages that must stay out crawlable and `noindex`ed. Do not `Disallow`
   them as well.
5. After the deploy, run the [Indexability Checker](/indexability-checker) on
   the pages that bring you the most traffic, or let a monitor do it every
   hour.

If your sitemap is part of the same release, the
[sitemap guide](/blog/how-to-check-a-sitemap) covers checking it.

---

Canonical page: https://watchfor.io/blog/did-a-deploy-noindex-your-pages · All articles: https://watchfor.io/blog/all.md · Site guide: https://watchfor.io/llms.txt
