A meta robots tag is an HTML meta element placed in the head of a web page that gives search engine crawlers page-level instructions about indexing and serving. In SEO, and specifically in the Topic of Indexing, it is the standard way to tell engines whether a page may enter the index, whether its links should be followed and how it may appear in search results.
The tag is read only after a crawler has fetched the page, which makes it an indexing control rather than a crawling control. That distinction explains most of the mistakes made with it, from noindex pages blocked in robots.txt to directives that never take effect because they are injected too late by JavaScript.
How the meta robots tag works
The tag has two attributes: `name`, which identifies the crawler the rule addresses, and `content`, which holds one or more comma-separated directives. The generic form <meta name="robots" content="noindex, follow"> applies to all compliant crawlers, while a value such as googlebot or bingbot in the name attribute targets a single bot.
When a crawler fetches a page, it parses the HTML head, extracts the directives and passes them to the indexing pipeline. If no tag exists, the engine applies the default behavior of index, follow, so a tag is only needed when a page should be treated differently. Directives are case-insensitive, and when several tags conflict, major engines generally apply the most restrictive combination.
Because the instruction lives inside the HTML document, the tag works only for HTML pages. Files such as PDFs, images and video have no head section, so they require the equivalent X-Robots-Tag HTTP header instead.
Meta robots directives and their effects
The meta robots tag supports a set of standard directives that control indexing, link handling and snippet presentation. Support varies slightly between engines, so the table describes the widely recognized behavior.
| Directive | Effect | Typical use |
|---|---|---|
| noindex | Excludes the page from search results | Thank-you pages, internal search results |
| nofollow | Asks engines not to follow links on the page | Pages with untrusted user links |
| none | Equivalent to noindex, nofollow | Pages that should be fully ignored |
| noarchive | Prevents a cached copy in results | Frequently changing pricing pages |
| nosnippet | Shows no text snippet or video preview | Content with licensing limits |
| max-snippet:[n] | Limits snippet length to n characters | Publishers controlling previews |
| max-image-preview | Sets image preview size: none, standard, large | News and media sites |
| unavailable_after | Drops the page after a given date | Time-limited offers and events |
The values index and follow exist but have no effect, because they restate the default. Including them is harmless; relying on them to override a noindex elsewhere does not work, since the restrictive rule wins.
Meta robots tag compared with other indexing controls
The meta robots tag is one of several mechanisms that influence what search engines crawl and index, and each operates at a different stage of the pipeline. Choosing the wrong one is the most frequent cause of pages that stay indexed or disappear unexpectedly.
| Control | Where it lives | What it governs | Binding strength |
|---|---|---|---|
| Meta robots tag | HTML head of each page | Indexing and serving | Directive |
| X-Robots-Tag | HTTP response header | Indexing for any file type | Directive |
| Robots.txt | File at the site root | Crawling only | Directive for compliant bots |
| Canonical URL | Link element or header | Preferred duplicate version | Hint |
| Password protection | Server configuration | Access itself | Enforced |
The key conflict is between robots.txt and noindex. If robots.txt disallows a URL, the crawler never fetches the page and therefore never sees its noindex directive. The URL can then remain indexed, often shown without a description, when external links point to it. Combining a canonical tag with noindex on the same page sends contradictory signals and should also be avoided.
Implementing the tag correctly
Correct implementation means placing the tag in the server-rendered HTML head, using one consistent set of directives per crawler and verifying the result with a live inspection. Content management systems usually expose the setting per page or per template, which is safer than editing markup by hand.
The decision table below maps common page types to a sensible directive and explains the reasoning.
| Page type | Recommended value | Reason |
|---|---|---|
| Internal search results | noindex, follow | Thin content, but links lead to products |
| Checkout and account pages | noindex | No search value, private context |
| Staging or test copies | noindex plus authentication | Tag alone may leak if removed |
| Thin tag or archive pages | noindex, follow | Reduces index bloat, keeps link paths |
| Expiring event pages | unavailable_after with a date | Automatic removal after the event |
| Core product and article pages | No tag needed | Default index, follow applies |
JavaScript rendering adds risk. Google can read a meta robots tag inserted by JavaScript, but rendering is deferred, and a page served with noindex in the initial HTML may be excluded before rendering ever changes it. Other engines render less reliably, so critical directives belong in the original HTML response.
Common mistakes and how to detect them
Most meta robots problems are configuration errors that persist unnoticed because the affected pages still load normally for visitors. Regular audits with a site crawler and index coverage reports catch them early.
| Symptom | Likely cause | Fix |
|---|---|---|
| Whole site drops from results | Staging noindex carried into production | Remove tag, request recrawl |
| Noindex page still indexed | URL blocked in robots.txt | Allow crawling until removal |
| Directive ignored | Tag placed in body or injected late | Move tag into the HTML head |
| Valuable pages excluded | Template-wide noindex on a category | Scope the rule to specific templates |
| Conflicting signals | Noindex combined with a canonical tag | Use one method per page |
Removal is not instant. A noindex directive takes effect only when the page is recrawled, which may take days for popular pages and weeks for deep ones. A long-standing noindex also tends to lead engines to crawl the page less often and eventually stop following its links, so noindex, follow is not a permanent way to pass link signals.
In everyday language
A meta robots tag is a small hidden note placed in the code of a web page, written for search engines rather than for people. It can say “please do not list this page” or “please do not show a preview of it.” Visitors never see the note, but search engines read it every time they visit.
Think of it as a sign on a shop door that only delivery drivers notice. The key point is that the search engine must walk up to the door to read the sign. If the path to the door is blocked, the sign is never read, and the instruction has no effect.
Seen in the real world
A regional news publisher relaunches its website after several months of development on a staging server. The staging environment used a site-wide noindex, nofollow setting, and the developers forget to switch it off at launch. Within about ten days, organic traffic falls by more than half as article pages drop out of the index one by one as they are recrawled.
An SEO auditor runs a crawl, sees the directive on every template and traces it to a single theme setting. The team removes it, submits the XML sitemap again and requests indexing for the most important sections. Traffic recovers over the following four weeks, and the publisher adds an automated check to its release process that blocks any deployment containing a site-wide noindex.