The robots value for the name attribute of the <meta> element (often called a "robots tag") defines the crawl and indexing behavior that web 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 robots.txt file is more effective than indexing rules as it blocks resources from being crawled entirely.
A <meta name="robots"> element can have the following additional attributes:
contentThe content attribute must be defined, and its value sets indexing and crawling behavior for cooperative search engine robots. Accepts one or more of the following keywords as a comma-separated list:
indexAllows the robot to index the page. This is the default behavior. Used by all major crawlers.
noindexRequests the robot not to index the page. Used by all major crawlers.
followAllows the robot to follow links on the page. This is the default behavior. Used by all major crawlers.
nofollowRequests the robot not to follow the links on the page. Used by all major crawlers.
allEquivalent to index, follow. Used by: Google.
noneEquivalent to noindex, nofollow. Used by: Google.
noarchiveRequests that the search engine not cache the page content. Used by: Google, Yahoo, Bing.
nosnippetPrevents displaying any description of the page in search engine results. Used by: Google, Bing.
noimageindexRequests that this page not appear as the referring page of an indexed image. Used by: Google.
nocacheSynonym of noarchive. Used by: Bing.
There are several important considerations to note when setting a robots meta value:
<meta> tag, robots still need to access the page to read these rules. To reduce bandwidth, consider using a robots.txt file instead.<meta name="robots"> tag and robots.txt serve different roles: robots.txt controls crawling, while the robots meta tag influences indexing and other behavior.robots.txt may still be indexed if linked from other sources.noindex directive will only take effect after the robot revisits the page, so ensure robots.txt doesn't prevent this.index vs. noindex or follow vs. nofollow, are mutually exclusive. Behavior is undefined when conflicting values are used.X-Robots-Tag, which is useful for non-HTML content such as PDFs or images.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" />
While not part of any specification, it is a de-facto standard method for communicating with search bots, web crawlers, and similar user agents.
This feature is intended for crawlers to observe, so "browser" compatibility doesn't apply.
X-Robots-Tag HTTP header
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/meta/name/robots