freecourses.digital
Lesson progress: 0 of 3 activities done
All lessons in Technical SEO Auditing Lesson 4.3 of 84

Meta Robots and X-Robots-Tag

This lesson covers

  • The difference between meta robots and X-Robots-Tag
  • The main directives: noindex, nofollow, and others
  • How to find accidental noindex across a site
  • How to audit non-HTML files like PDFs

Short answer

Meta robots tags sit in a page's HTML head, while X-Robots-Tag sends the same directives in the HTTP header, which also works for PDFs and images. Both control indexing with values like noindex and nofollow. Audit them by filtering your crawl for noindex and checking that no important page carries it by mistake.

An Antipolo events venue updated its WordPress theme. The new theme added noindex to all “page” templates, including Weddings, Debuts, and Corporate Events. Within three weeks, those pages vanished from Google. Accidental noindex is one of the most expensive one-line bugs in SEO.

Two places, same rules

In the HTML head:

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

In the HTTP header:

X-Robots-Tag: noindex

X-Robots-Tag works for any file type, so it is the way to noindex PDFs, images, and feeds. It is also easy to miss because it is invisible in the page source.

Directives you will see

  • noindex: do not show in results
  • nofollow: do not follow links on this page
  • none: same as noindex, nofollow
  • nosnippet, max-snippet, max-image-preview: control how results look
  • unavailable_after: drop the page after a date

How to audit

  1. In your crawl, open Directives and filter Noindex. Your crawler checks both the HTML and the header.
  2. Sort noindexed URLs by folder or template. Ask: should this whole group be hidden?
  3. Cross-check with Search Console’s “Excluded by noindex tag” list.
  4. Look for crawler-specific tags (googlebot) and conflicting tags on the same page.
  5. Check that noindexed URLs are not in your XML sitemap.

Practice: should this page be noindexed?

Sort each item into the right group.

  • Thank-you page after a form

  • Main service page

  • Internal search results

  • Location page for your Naga branch

  • Printable duplicate PDF of a web page

  • Blog post with steady search traffic

Common mistakes

  • Theme or plugin noindex on whole templates.
  • Forgetting the header. Only checking the HTML misses X-Robots-Tag.
  • Noindexed pages still in the sitemap. Mixed signals.
  • Noindex plus robots.txt block. Google never sees the noindex.
1. How do you noindex a PDF?
2. Meta robots says index, X-Robots-Tag says noindex. Result?
3. Where should noindexed URLs not appear?

Your action

Next, you will find conflicts between noindex and canonical tags.

Key terms

Meta robots tag
An HTML tag like <meta name="robots" content="noindex"> giving indexing instructions for that page.
X-Robots-Tag
An HTTP response header carrying robots directives, useful for non-HTML files.
noindex
A directive telling search engines not to show the page in results.
nofollow (page-level)
A directive asking search engines not to follow links on the page. Google treats it as a hint.

Questions beginners ask

What happens if meta robots and X-Robots-Tag disagree?

Google applies the most restrictive directive. If either says noindex, the page is not indexed.

Can I target only Googlebot?

Yes, with <meta name="googlebot" content="noindex">. Check for crawler-specific tags during audits, since they are easy to miss.

Does noindex,follow still pass link value?

For a while. Over time, Google may treat long-term noindexed pages like nofollow and crawl them less.

Can JavaScript add or remove noindex?

It can add it, but if the original HTML has noindex, Google may skip rendering. Never rely on JavaScript to remove a noindex.

Related lessons

Want someone to handle SEO for your business while you learn? The team at Remar Digital can help.