Skip to content
LogZuno

What is the X-Robots-Tag?

An HTTP response header that gives crawlers indexing instructions for any file, including PDFs and images.

Updated

Definition

The X-Robots-Tag is an HTTP response header that carries the same instructions as the meta robots tag, but works for any type of file, not just HTML pages.

X-Robots-Tag: noindex, nofollow

When to use it

  • Files that can't carry a meta tag: PDFs, images, feeds.
  • Applying a rule to many URLs at once from server configuration.

Like the meta tag

The crawler has to be allowed to fetch the file to see the header. Don't also block it in robots.txt.

Send your first event today.

7 days free on any plan, up to 500 events. Then from $17 a month. Cancel during the trial and you pay nothing.