X-Robots-Tag
Response header, redirects & routing
Gives search engine crawlers indexing instructions in a header, like the robots meta tag.
X-Robots-Tag: noindex, nofollow
Works for any file type, not just HTML. noindex keeps the URL out of search results; nofollow tells crawlers not to follow links. Check that staging environments send noindex and production does not.
Check it on a live site
Run a header check on any URL to see whether and how it sends X-Robots-Tag.
Specification: Search engine convention