docs.rodeo

MDN Web Docs mirror

{{HTMLSidebar}} 

The robots value for the name attribute of the {{htmlelement("meta")}}  element (often called a “robots tag”) defines the crawl and indexing behavior that web {{glossary("Crawler", "crawlers")}}  should use with the page. If specified, you define instructions for crawlers in the content attribute of the <meta> element as a comma-separated list of one or more rules.

For example, to hint to crawlers that a page should be excluded from their search indexes, a noindex value can be used:

<meta name="robots" content="noindex" />

[!NOTE] Only cooperative robots follow these rules. A crawler still needs to access the resource to read headers and meta elements (see X-Robots-Tag: Interaction with robots.txt). If you want to prevent bandwidth consumption by crawlers, a restrictive {{Glossary("robots.txt")}}  file is more effective than indexing rules as it blocks resources from being crawled entirely.

Usage notes

A <meta name="robots"> element can have the following additional attributes:

Description

There are several important considerations to note when setting a robots meta value:

Examples

Using a robots keyword

The following example uses nofollow to request that a crawler doesn’t follow links on a page and noindex to request that the page is excluded from indexing:

<meta name="robots" content="nofollow, noindex" />

Specifications

While not part of any specification, it is a de-facto standard method for communicating with search bots, web crawlers, and similar user agents.

Browser compatibility

This feature is intended for crawlers to observe, so “browser” compatibility doesn’t apply.

See also

In this article

View on MDN