Deutsch
robots.txt & robots directives

Meta robots tag

Also known as: robots meta tag, meta robots, robots tag

The meta robots tag is an HTML element in the <head> of a page that tells search engines how to handle that page. It has no connection to the company Meta or to physical robots. The most common rule is noindex, which keeps a page out of search results. The tag sits next to the robots.txt file in the toolbox, with a different job, because robots.txt controls whether a URL is crawled and the meta robots tag controls indexing and display.

Which values does Google support?

  • noindex excludes the page from results.
  • nofollow asks Google not to follow the links on the page.
  • none equals noindex, nofollow.
  • nosnippet shows no text or video preview.
  • max-snippet:[number], max-image-preview:[none|standard|large] and max-video-preview:[number] limit the preview.
  • indexifembedded lets a noindex page be indexed when it is embedded in another page.
  • notranslate and noimageindex switch off translation and image indexing.
  • unavailable_after:[date] removes the page after a date.

all is the default and needs no tag. Google states that noarchive is no longer used. Rules can be combined in one tag with commas or placed in several tags. If rules conflict, the more restrictive one applies, so nosnippet beats max-snippet:50.

Controlling crawling and indexing: the options compared
MethodPrevents crawling?Keeps the URL out of Search?What Google saysTypical use
robots.txt Disallowyesno, the URL can be indexed without its content if other pages link to itused mainly to avoid overloading the server with requests; not a mechanism for keeping a page out of GoogleLimiting crawler load, excluding areas from being fetched
noindex in the robots meta tag (this term)no, Google has to be able to fetch the pageyesonly works if the page isn't blocked by robots.txt; Google then drops the page even if other sites link to itHTML pages that stay reachable but shouldn't show up in search results
noindex in the X-Robots-Tag HTTP headerno, Google has to be able to fetch the URLyesany robots meta tag rule can also be sent as a header; same prerequisite as the meta tagFiles without an HTML head, such as PDFs, images or videos
rel="canonical"nonot directly; a strong signal for which of several duplicate URLs becomes canonicalhelps consolidate signals such as links into the preferred URL; don't use robots.txt or noindex for canonicalizationDuplicate and very similar pages, for example from parameters
Status code 410 (or 404)no, but Google gradually fetches the URL less oftenyes, a previously indexed URL is removedtreats 404 and 410 the same wayPage permanently removed with no replacement
Password protection (login)yes, crawlers can't reach the contentyesone of the ways Google lists for permanent removal; authorised users see the page, crawlers don'tPrivate or confidential content
Search Console: Removalsno, Google can keep crawling the URLhides the URL from search results for about six monthstemporary only; 404/410, password protection or noindex make it permanentUrgent cases, until a permanent measure takes effect

robots.txt and noindex cancel each other out. If a URL is blocked by robots.txt, Google never sees the noindex, and the URL can still appear in results. Google doesn't support noindex inside the robots.txt file itself. Sources: Google Search Central: Introduction to robots.txt (last updated 2025-12-10); Google Search Central: Block Search indexing with noindex (last updated 2025-12-10); Google Search Central: Robots meta tag, data-nosnippet, and X-Robots-Tag specifications (last updated 2026-03-24); Google Search Central: How to specify a canonical URL (last updated 2026-07-10); Google Crawling Infrastructure: How HTTP status codes affect Google's crawlers (last updated 2026-02-04); Google Search Central: Remove information from Google (last updated 2025-12-10); Search Console Help: Removals and SafeSearch reports tool. Last checked: .

Example

HTML
<meta name="robots" content="noindex, nofollow">
<meta name="googlebot" content="max-snippet:160">

The robots name addresses all crawlers. The googlebot name addresses Google’s web crawler only. Files that have no HTML head, such as PDFs, take the same rules in an X-Robots-Tag HTTP header instead.

Common mistakes

  • Blocking the page in robots.txt. Google never fetches the page, so it does not see the tag.
  • Relying on noarchive. Google no longer uses it.
  • Using nofollow on important pages by accident. The page-level value covers every link on the page.

Sources

  1. Robots meta tag, data-nosnippet, and X-Robots-Tag specifications – Google Search Centraldevelopers.google.com
  2. <meta name="robots"> – MDN Web Docsdeveloper.mozilla.org

Last updated: