# Robots Meta Tag Guide: Every Directive and How They Combine

> Learn every robots meta tag directive, how they combine, how they differ from robots.txt and X-Robots-Tag, and how to verify them. Examples included.

Source: https://ranklocaltoday.com/blog/robots-meta-tag-guide  
Last updated: 2026-10-07

Technical SEO

# The Robots Meta Tag, In Depth: Directives, Combinations, and Gotchas

Every directive Google supports, how they stack, why robots.txt hides your noindex, and how to verify what crawlers really see.

By **RankLocalToday** Updated Oct 7, 2026 11 min read

For: Local business owners, marketers, and developers who manage a site's indexing and search appearance

**10+** documented directives to choose from

**3** places a rule can live: HTML, header, robots.txt

**Most restrictive** wins when directives conflict

**Sept 2019** when Google dropped robots.txt noindex

The robots meta tag is a single line of HTML that can remove a page from Google, strip the snippet from a result, or quietly stop a crawler from following every link on a page. Local service sites tend to meet it in one of two ways: a developer leaves a staging `noindex` in place on launch day, or nobody touches it and robots.txt is asked to do a job it cannot do. Both mistakes are cheap to make and slow to notice.

This guide covers every directive Google documents, how they combine and conflict, how the meta tag differs from robots.txt and the X-Robots-Tag header, and the rule that trips up even experienced teams: a page blocked in robots.txt never gets the chance to show its noindex. We finish with per-bot targeting, a list of common mistakes, and a repeatable way to verify what search engines actually see.

**Best use case:** Directives are read only on crawlable pages, so a robots.txt block will always hide a noindex from search engines.

## What the robots meta tag does, and where it lives

The robots meta tag is an element in a page's `<head>` that tells search engines how to treat that one URL: whether to index it, whether to follow its links, and how much of it may appear in results. It is page-level, which makes it the most precise crawl-control instrument you have.

```
<meta name="robots" content="index, follow">
```

Two attributes matter. `name` identifies which crawler the rule addresses; `robots` means all compliant crawlers. `content` holds a comma-separated list of directives. Both are case-insensitive. When no tag exists, the default is `index, follow`, so declaring it explicitly changes nothing.

Two practical constraints are worth knowing before anything else:

- **It belongs in the head.** Markup errors that push the tag into the body make it unreliable.
- **The page must be crawlable.** A crawler cannot obey a rule it never reads. This is the root of the biggest gotcha, covered below.

Unlike a canonical tag, which Google treats as a hint, robots directives are rules. If Google can see `noindex`, it will honor it.

## Indexing and link directives: noindex, nofollow, none

These four values control the two basic decisions: does this page appear in search, and are its links used.

- `index` / `noindex`: allow or forbid the page appearing in search results. `noindex` is dropped on the next crawl, which can take days for important pages and weeks for rarely visited ones.
- `follow` / `nofollow`: allow or forbid following the links on the page. This is page-wide. To treat a single link differently, use `rel="nofollow"`, `rel="sponsored"`, or `rel="ugc"` on that anchor instead.
- `none` is shorthand for `noindex, nofollow`. `all` is shorthand for `index, follow`.

```
<!-- Keep a booking confirmation out of search -->
<meta name="robots" content="noindex">

<!-- Equivalent shorthand for a fully private utility page -->
<meta name="robots" content="none">
```

A note on `noindex, follow`. Many SEOs use it assuming links on a noindexed page keep passing signals forever. Google has indicated that a page left on noindex for a long time can eventually be treated as nofollow too. Do not build link flow that depends on a noindexed page; link to the destination from an indexable page instead.

For a local service business, sensible `noindex` candidates include thank-you and confirmation pages, internal search results, cart or quote-request steps, login and account areas, and printer-friendly duplicates. Thin city pages are different: noindexing hides a content problem rather than fixing it.

## Snippet, preview, and expiry directives

These directives do not decide whether you rank. They decide how you look once you do, and which parts of your content Google may reuse.

- `nosnippet`: no text snippet or video preview in results. A static image thumbnail may still appear. Google states this applies across Search, Images, Discover, and its AI features such as AI Overviews and AI Mode.
- `max-snippet:[number]`: caps the text snippet at that many characters. `0` behaves like `nosnippet`; `-1` means no limit.
- `max-image-preview:[none|standard|large]`: sets the largest image preview allowed. `large` is the value Google asks for before showing large previews, including in Discover.
- `max-video-preview:[number]`: caps video preview length in seconds. `0` means a static image at most; `-1` means no limit.
- `noimageindex`: do not index images on this page. They can still be indexed if they appear on other pages or are linked elsewhere.
- `noarchive`: forbids showing a cached copy. Google retired its cached-page links in 2024, so this is now largely a legacy directive for Google, though other crawlers and archiving services may still read it.
- `unavailable_after:[date]`: stop showing the page after a date and time. Accepted formats include RFC 822, RFC 850, and ISO 8601.

```
<!-- A modern, permissive default for content you want shown generously -->
<meta name="robots" content="max-snippet:-1, max-image-preview:large, max-video-preview:-1">

<!-- A seasonal promotion that should leave results after the offer ends -->
<meta name="robots" content="unavailable_after: 2026-12-31T23:59:59-05:00">
```

`unavailable_after` does not delete or redirect the page. After the date passes and Google recrawls, the URL drops from results while remaining live for anyone with the link. Use it for genuinely time-boxed pages, such as a winter tune-up special.

To exclude only part of a page from snippets, wrap that content in an element carrying the `data-nosnippet` attribute, for example `<span data-nosnippet>`. It works on `span`, `div`, and `section` elements.

If you care about being quoted in AI-generated answers, remember that restrictive snippet directives work against you. You can see how your key pages currently surface with our [AEO check](https://ranklocaltoday.com/aeo-check).

## How directives combine and conflict

You can put every directive in one tag, separated by commas, or use several tags. Google merges them. When rules disagree, the most restrictive one wins.

```
<!-- These two lines behave identically -->
<meta name="robots" content="noindex, nofollow">
<meta name="robots" content="noindex"><meta name="robots" content="nofollow">

<!-- Conflict: noindex beats index -->
<meta name="robots" content="index, noindex">

<!-- Conflict: the lower limit wins, so the snippet is capped at 50 characters -->
<meta name="robots" content="max-snippet:50, max-snippet:200">
```

The same union logic applies across sources. If the HTML says `index` but the server sends `X-Robots-Tag: noindex`, the page is noindexed. This matters in practice because rules get added in several places: an SEO plugin, a theme, a CDN rule, and a developer's server config. Nobody sees the full picture unless someone checks the final response. If you need to apply directives to PDFs or other non-HTML files, our guide to the [X-Robots-Tag HTTP header](https://ranklocaltoday.com/blog/x-robots-tag-http-header-guide) shows how to set and verify them.

Directives also stack with other signals rather than overriding them. A page marked `noindex` that also carries a canonical pointing to a different URL sends mixed instructions. Pick one intent: either the page is a duplicate of another URL, in which case canonicalize it, or it should not be indexed at all, in which case noindex it.

## Meta robots vs robots.txt vs X-Robots-Tag, and the critical gotcha

These three mechanisms are often treated as interchangeable. They are not, because they control different stages of the pipeline.

- **robots.txt** controls _crawling_: whether a bot may fetch a URL. It is a single file at the site root and works on URL patterns.
- **Meta robots** controls _indexing and serving_ for an HTML page, and is read from the page itself.
- **X-Robots-Tag** is an HTTP response header that carries the same directives as the meta tag. It is the only option for non-HTML files such as PDFs, images, and videos, and it is convenient for applying rules by pattern at the server level.

**Here is the rule that matters most: if a URL is disallowed in robots.txt, crawlers never fetch it, so they never see its `noindex`.** The directive is invisible. Worse, if other pages link to the blocked URL, Google can still index the bare address and show it with no description, because it knows the URL exists without knowing what is on it.

```
# robots.txt: DON'T pair this with a noindex on the same pages
User-agent: *
Disallow: /thank-you/

# The page can still be indexed from links, and its noindex is never read.
```

The fix is to reverse the order. Remove the Disallow, leave the `noindex` in place, let Google recrawl and drop the pages (the Page indexing report in Search Console will show them as excluded by a noindex tag), and only then decide whether blocking is still necessary. Usually it is not. If something sensitive needs to disappear fast, use the Removals tool for a temporary hide, and add the `noindex` as the lasting fix. For anything truly private, require a login; neither robots.txt nor noindex is security.

Also note that Google stopped honoring a `noindex` rule written inside robots.txt in September 2019. If you inherit a file containing one, it does nothing.

A fair division of labor: use robots.txt to keep crawlers out of near-infinite spaces such as faceted filters or internal search, where the concern is crawl waste. Use meta robots for ordinary HTML pages you want out of results. Use X-Robots-Tag for files and for server-wide patterns. And remember that `noindex` does not save crawl budget by itself, because the page must still be crawled for the directive to be read.

```
# Apache: noindex every PDF (nginx: add_header X-Robots-Tag in a location block)
<FilesMatch "\.pdf$">
Header set X-Robots-Tag "noindex, nofollow"
</FilesMatch>
```

## Targeting individual bots

Replacing `robots` in the `name` attribute addresses a specific crawler. For Google, the documented values are `googlebot` and `googlebot-news`. Bing reads `bingbot`.

```
<!-- Only Google is told to stay out; other engines are unaffected -->
<meta name="googlebot" content="noindex">

<!-- Everyone gets a snippet cap; Google also gets noindex -->
<meta name="robots" content="max-snippet:160">
<meta name="googlebot" content="noindex">
```

Google combines the generic and the specific tag, applying the most restrictive result, so the second example ends up with both noindex and the snippet cap for Googlebot. You do not need to repeat shared directives in the bot-specific tag.

Per-bot rules are rarely needed on a typical local business site. The realistic use cases are keeping a page out of Google News, or suppressing one engine's behavior while leaving others alone. A common misconception concerns AI crawlers: the `Google-Extended` token is a robots.txt control, not a meta tag value, and it does not govern how Search AI features use your pages. For that, use snippet directives. Other AI vendors document their own tokens, and those are generally managed in robots.txt as well.

## Common mistakes and how to avoid them

- **Shipping the staging noindex.** The classic launch-day disaster. In WordPress, the Settings, Reading option to discourage search engines adds a noindex.
- **Disallow plus noindex.** Covered above. The block hides the directive.
- **Noindexed URLs in the XML sitemap.** A sitemap is a list of pages you want indexed. Contradicting it produces "Submitted URL marked noindex" errors and confuses the signal.
- **Using JavaScript to remove a noindex.** When Google sees `noindex` in the raw HTML, it may skip rendering, so a script that later changes it to `index` may never run. Serve the correct value in the initial HTML.
- **Site-wide nofollow on hubs.** A `nofollow` on a service hub page stops it from passing discovery to the pages beneath it. Use link-level attributes where you actually need them.
- **Blanket nosnippet or max-snippet:0.** It removes your descriptive text from results and from Google's AI features. For a business that wants calls and visits, this usually costs more than it protects.
- **Forgetting non-HTML files.** A price-list PDF or an old brochure can outrank your service page. Handle it with X-Robots-Tag, or by removing the file.

## Verifying what search engines actually see

Never trust the CMS settings screen. Verify the final output from the outside, at three levels.

**1. Check the raw response.** Look at both the HTML and the headers:

```
curl -s https://example.com/page/ | grep -i 'name="robots"\|name="googlebot"'
curl -sI https://example.com/brochure.pdf | grep -i x-robots-tag
```

Compare the raw HTML against the rendered DOM in your browser's developer tools. If they differ, JavaScript is modifying the tag, and the raw version is what Google sees first.

**2. Use Search Console.** The URL Inspection tool's live test reports whether indexing is allowed and, if not, which rule blocked it, such as a noindex in the robots meta tag or a robots.txt block. The Page indexing report groups the outcomes: "Excluded by 'noindex' tag," "Blocked by robots.txt," and "Indexed, though blocked by robots.txt." That last status is the telltale sign of the Disallow-plus-noindex trap.

**3. Crawl at scale.** A desktop crawler such as Screaming Frog flags indexability for every URL, including the directive's source (meta, header, or robots.txt). Our [website SEO audit](https://ranklocaltoday.com/website-seo-audit) runs this kind of check, which is a faster way to catch a stray noindex across hundreds of pages than inspecting them one by one.

After every template change, plugin update, or migration, test a sample from each page type: home, service, location, blog, contact. Add an automated assertion to your deployment pipeline that fails the build if production templates contain `noindex`. When you remove a noindex, expect indexing to resume only after a recrawl, so give it days to weeks and monitor, rather than re-editing the tag in a panic.

## FAQ

### Does noindex stop Google from crawling a page?

No. Google must crawl a page to read its noindex, and it may keep recrawling it, though usually less often over time. Noindex controls whether the page appears in results, not whether it is fetched. If you need to stop crawling itself, that is a robots.txt job, with the tradeoffs described above.

### Can I put noindex in my robots.txt file?

No. Google stopped supporting noindex rules inside robots.txt in September 2019, so the line does nothing. Use a robots meta tag in the page's head, or an X-Robots-Tag HTTP header for files like PDFs. Either way, the page has to stay crawlable so the directive can be read.

### How long does it take for a noindexed page to leave Google?

It depends on how often Google recrawls the URL. Frequently crawled pages can drop within days, while obscure ones can take weeks. You can speed things up by requesting a recrawl through URL Inspection, and the Removals tool hides a URL temporarily while the noindex takes effect.

### Is it okay to use both a canonical tag and noindex?

Avoid it. A canonical says this page is a duplicate and another URL should carry the signals; noindex says do not index this page at all. Together they send mixed instructions. Choose canonical for duplicates and noindex for pages that should stay out of search entirely.

### Do nosnippet and max-snippet affect AI Overviews?

According to Google's documentation, yes. Snippet controls such as nosnippet and max-snippet also limit how your content can be used in AI features like AI Overviews. That can protect content, but it also reduces your chances of being quoted or cited, so use them deliberately on specific pages rather than sitewide.

### Turn this into a practical SEO action plan

Use RankLocalToday tools to check rankings, diagnose website issues, and prioritize the next organic traffic move.

[Get your SEO plan →](https://ranklocaltoday.com/local-seo-plan)

More in this topic: [Website SEO, all 208 guides →](https://ranklocaltoday.com/blog/local-website-seo-guides)
