Robots Meta Tag Rules: noindex, nofollow, nosnippet and More

Red stop sign

The robots meta tag tells search engines how to treat a single page: whether to index it, follow its links or show a snippet. This guide follows Google’s documentation and explains the rules, the X-Robots-Tag header and a common mistake that stops the rules from working.

Quick facts

  • noindex: do not show the page, media or resource in search results
  • nofollow: Google should not follow links on the page
  • nosnippet: no text snippet or video preview
  • max-snippet:[number]: caps the snippet length; 0 is equivalent to nosnippet
  • noarchive: ignored by Google Search
  • Important: if robots.txt blocks a URL, Google cannot see the rules on it
  • Last checked: 5 November 2026 against Google Search Central

Where does the tag go?

Google’s robots meta tag documentation says the tag belongs in the page’s head, though Google also respects it in the body. Use `name=”robots”` for all crawlers, or a crawler token such as googlebot. Google recognises only googlebot and googlebot-news.

The X-Robots-Tag header

For non-HTML files, such as PDFs and images, where meta tags cannot be added, use the X-Robots-Tag HTTP header. It accepts any rule a meta tag does, can be scoped to a user agent and can be set site-wide in server configuration such as Apache or NGINX.

The rules

RuleWhat it does
noindexDo not show this page, media or resource in search results; without it, the page may be indexed
nofollowGoogle should not follow links on the page; without it, Google may use those links for discovery
nosnippetNo text snippet or video preview; a static image thumbnail may still appear
max-snippet:[number]Caps the snippet at that many characters; 0 is equivalent to nosnippet and -1 lets Google choose
indexifembeddedLets Google index content embedded in another page, despite noindex; no effect unless noindex is also present
noarchiveIgnored by Google Search
unavailable_after:[date]Hides the page from results after the given date; an invalid date is ignored

When rules conflict, the more restrictive one wins. For example, nosnippet overrides max-snippet:50. The data-nosnippet attribute can exclude specific sections of a page instead of the whole snippet.

The crawl requirement

Meta and header rules are only found when a crawler fetches the URL. If robots.txt blocks crawling, Google cannot see those rules and ignores them. Any URL that carries indexing or serving rules must therefore stay crawlable. Our guide to robots.txt vs noindex explains why this matters.

Using it in WordPress

SEO plugins such as Rank Math and Yoast add noindex controls in the post settings. Use them for pages you do not want in search, such as thank-you pages. To control how snippets appear, see our guide to meta description length.

Frequently asked questions

Does noindex remove a page immediately?

Google needs to recrawl the page to see the rule, so there can be a delay.

Does nofollow stop a page being indexed?

No. It tells Google not to follow links on the page.

Does Google use noarchive?

No. Google says noarchive is ignored by Google Search.

Why is my noindex ignored?

If robots.txt blocks the URL, Google cannot see the tag.

Scroll to Top