Skip to main content

What does <meta name="robots"> do?

The <meta name="robots"> tag controls how search engines index the page and how they handle its links.

It gives search bots (Googlebot, Bingbot, and others) instructions about whether they may:

  • add the page to search results,
  • follow links inside it,
  • save a cached copy of the page, and so on.

1. Syntax

html
<meta name="robots" content="index, follow">

Here:

  • name="robots": indicates that these are instructions for search bots;
  • content: sets what they are allowed or forbidden to do.

2. Main values of content

ValueWhat it doesExample
indexAllows indexing the page (include in search)<meta name="robots" content="index">
noindexForbids indexing (do not add to search)<meta name="robots" content="noindex">
followAllows following links on the page<meta name="robots" content="follow">
nofollowForbids following links (does not pass weight)<meta name="robots" content="nofollow">
noarchiveForbids caching the page in the search engine<meta name="robots" content="noarchive">
nosnippetForbids showing a description (snippet) in results<meta name="robots" content="nosnippet">
noimageindexForbids indexing images from this page<meta name="robots" content="noimageindex">

3. Commonly used combinations

Allow everything (default):

html
<meta name="robots" content="index, follow">
html
<meta name="robots" content="noindex, follow">

(often used for cart pages, account pages, forms, and so on)

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

Forbid cache and description:

html
<meta name="robots" content="noarchive, nosnippet">

4. When to use it

  • For auxiliary pages that should not appear in search (cart, profile, filters).
  • For duplicate pages, to avoid SEO cannibalization.
  • For admin or private sections, if there is no access to the robots.txt file.

5. The difference between <meta name="robots"> and robots.txt

Feature<meta name="robots">robots.txt
Applies toA specific pageThe whole site or section
Control levelHTMLServer level
Can control indexingYesNo (only blocks access)
LocationInside <head>Separate file at the site root

Summary:

ParameterPurpose
Tag<meta name="robots">
LocationInside <head>
PurposeControls indexing and link handling
Key valuesindex, noindex, follow, nofollow, noarchive, nosnippet
SEO importanceLets you control which pages search engines can see

In simple terms: <meta name="robots"> is an instruction for search engines:

"May this page be shown in search, and may its links be followed?"

It helps manage indexing precisely, without removing the page from the site.

Short Answer

Interview ready
Premium

A concise answer to help you respond confidently on this topic during an interview.