Meta robots tag

On this page 7

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.

DirectiveEffectTypical use
noindexExcludes the page from search resultsThank-you pages, internal search results
nofollowAsks engines not to follow links on the pagePages with untrusted user links
noneEquivalent to noindex, nofollowPages that should be fully ignored
noarchivePrevents a cached copy in resultsFrequently changing pricing pages
nosnippetShows no text snippet or video previewContent with licensing limits
max-snippet:[n]Limits snippet length to n charactersPublishers controlling previews
max-image-previewSets image preview size: none, standard, largeNews and media sites
unavailable_afterDrops the page after a given dateTime-limited offers and events
Common meta robots directives

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.

ControlWhere it livesWhat it governsBinding strength
Meta robots tagHTML head of each pageIndexing and servingDirective
X-Robots-TagHTTP response headerIndexing for any file typeDirective
Robots.txtFile at the site rootCrawling onlyDirective for compliant bots
Canonical URLLink element or headerPreferred duplicate versionHint
Password protectionServer configurationAccess itselfEnforced
Indexing and crawling controls side by side

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 typeRecommended valueReason
Internal search resultsnoindex, followThin content, but links lead to products
Checkout and account pagesnoindexNo search value, private context
Staging or test copiesnoindex plus authenticationTag alone may leak if removed
Thin tag or archive pagesnoindex, followReduces index bloat, keeps link paths
Expiring event pagesunavailable_after with a dateAutomatic removal after the event
Core product and article pagesNo tag neededDefault index, follow applies
Choosing meta robots values by page type

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.

SymptomLikely causeFix
Whole site drops from resultsStaging noindex carried into productionRemove tag, request recrawl
Noindex page still indexedURL blocked in robots.txtAllow crawling until removal
Directive ignoredTag placed in body or injected lateMove tag into the HTML head
Valuable pages excludedTemplate-wide noindex on a categoryScope the rule to specific templates
Conflicting signalsNoindex combined with a canonical tagUse one method per page
Frequent meta robots errors with causes and fixes

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.