X-Robots-Tag HTTP Header

X-Robots-Tag

Specify how the resource is shown in search results.

Multiple Allowed

This header can occur multiple times in a response.

Accepted Values

Multiple values are allowed, each seperated by a comma.

The values can be restricted to a particular user agent by preceeding the line with the agent name and a colon -agentname:
all

All restrictions apply.

indexifembedded

Allow content to be indexed when page is iframed.

max-image-preview=<option>

Maximum image preview size.

Options:

  • none

    No image preview.
  • standard

    Default image preview.
  • large

    Large image preview.
max-snippet=<integer>

Maximum number of characters for text snippet.

max-snippet=4
max-video-preview=<integer>

Maximum number of seconds for video snippet.

max-video-preview=4
noarchive

Do not show a cached link for this page.

nofollow

Do not follow links on this page.

noimageindex

Do not index images on this page.

noindex

Do not show this page in search results.

none

Do not show this page in search results or follow links.

nosnippet

Do not offer a snippet for this page.

notranslate

Do not offer translation for this page.

unavailable_after=<date>

Do not show in search results after this date/time.

unavailable_after=<day-name>, <day> <month> <year> <hour>:<minute>:<second> GMT

Example

X-Robots-Tag: noindex, nofollow, max-video-preview=4
X-Robots-Tag: googlebot: noindex, nofollow

Parse

Enter a X-Robots-Tag header below to parse and return details about it.

Reference

https://developers.google.com/search/docs/advanced/robots/robots_meta_tag