Skip to content
Seed Lighthome

Meta Robots Tag: Control Indexing, Following and Snippets

A meta robots tag is a line in a page's code telling search engines whether to index the page and follow its links. Google supports noindex and nofollow, and reads them only if it can reach the page, so blocking it in robots.txt stops the tag working. Seed Light checks this on every build.

A page settings panel with index and follow switches.

Somebody has told you a page needs a noindex tag, or you have found one on a page that should be in Google and now you are not sure what it does.

The meta robots tag is one line of code with a large effect. Used properly it keeps thank you pages and internal search results out of Google. Used wrongly it hides pages you are paying to promote.

Here is what the tag does, the five steps I follow when setting one, and the mistake that keeps pages visible when their owner is certain they are hidden.

Key Takeaways

What Is a Meta Robots Tag?

A meta robots tag is a line in the head of a page telling search engines how to treat it. It looks like this.

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

The two parts do different jobs. Noindex keeps the page out of search results. Nofollow tells Google, in its own words, to not follow the links on this page.

Most pages need neither. The default is that Google may index a page and follow its links, so the tag only exists to turn something off.

That is worth saying plainly, because people add the tag to pages that were perfectly fine without it. An ordinary service page needs no robots tag at all.

You will also see a second version of the tag naming one crawler rather than all of them, written as googlebot instead of robots. Use the general form unless you have a specific reason not to.

You will also meet none, which Google's specification says is equivalent to noindex, nofollow. It saves a few characters and costs you clarity.

A page source view with a meta robots line highlighted in yellow inside the head section, labelled Robots tag
One line in the head of the page. Most pages on your site need no robots tag at all.

Meta Robots vs robots.txt: Why the Mix Up Keeps Happening

This is the single most common fault, and it catches people who have done everything else right.

Robots.txt and the meta robots tag sound like the same thing. They work at different moments. Robots.txt asks a crawler not to fetch the page. The meta tag tells the crawler what to do after it has read it.

So the two can cancel each other out. If you block a page in robots.txt and also put noindex on it, Google says the crawler will never see the noindex rule, and the page can still appear in search results.

The page stays visible precisely because you tried to hide it twice.

Google is also explicit that specifying the noindex rule in the robots.txt file is not supported, so writing it there does nothing at all.

If a page must stay out of Google, let it be crawled and use the tag. Save robots.txt for things you do not want fetched, like a staging area or a heavy script.

Two stacked panels, the upper reading Do not fetch this page and the lower reading Do not index this page, with a red cross between them
Block the page and the crawler never reads the rule inside it. The page stays visible because you tried to hide it twice.

How to Set a Meta Robots Tag

1. Write down which pages should stay out

The usual list is short. Thank you pages, internal search results, cart and checkout pages, tag archives that duplicate other pages, and anything built for one customer.

A thank you page is the clearest case. It exists to be seen once, straight after a form, and somebody arriving on it from Google has missed the form entirely.

Internal search results are the next most common. They produce an unlimited number of near identical pages, and none of them is the page you would want somebody to land on.

Everything you want found stays off this list. If you hesitate over a page, leave it indexable and look at the traffic later.

A page list in a content manager showing Thank you, Internal search, Checkout and Tag archive, each with a crossed out eye icon
The list is short. Everything you want found stays off it.

2. Put the tag in the head of the page

The tag belongs inside the head section, alongside the title and description. Most website builders and SEO plugins give you a switch instead of asking you to edit code.

In WordPress with an SEO plugin, it is usually a setting on the page itself reading something like Allow search engines to show this page.

Use the switch rather than pasting the tag by hand where you can. A plugin keeps one copy of the rule, and hand written tags have a habit of being duplicated or left behind.

A page settings sidebar with a toggle switched off beside a label reading Allow search engines to show this page
Use the switch rather than pasting the tag by hand. One copy of the rule is easier to find later.

3. Use the X-Robots-Tag header for anything that is not a web page

A PDF, an image or a spreadsheet has no head section to put a tag in.

Google supports an HTTP response header for exactly this. Your developer or host sets it on the server, and it applies to the file itself.

A server response header list with one header line highlighted in yellow, labelled Applies to the file itself
A PDF has no head section, so the header is the only route to it.

4. Check robots.txt is not blocking the page

Open your robots.txt file, which sits at your domain followed by robots.txt, and look for a Disallow line matching the page.

If the page is disallowed, remove that line. The crawler has to be allowed in before the tag on the page can mean anything.

A plain text robots file with one Disallow line struck through in red and a note beside it reading Remove this line
The crawler has to be allowed in before the tag on the page can mean anything.

5. Confirm it with the URL inspection tool

Paste the page address into the URL inspection tool in Google Search Console. It tells you whether the page is indexed and which rule it found.

Do not judge it by searching for the page yourself. Removal takes time, and your own browsing history makes search results a poor test.

The tool reports what Google actually did with the page. That is the only answer that counts. Give it a few days before expecting the page to disappear.

If the page is one you urgently need out of results, Search Console also has a removals tool that hides it temporarily while the rule takes effect.

A search console url inspection result showing a status line about a page removal rule, with a button reading Test live page
The tool reports what Google actually did. Searching for the page yourself is a poor test.

Robots Meta Directives Worth Knowing

  • noindex. Keeps the page out of results entirely, whoever links to it.
  • nofollow. Tells Google not to follow the links on that page.
  • none. Google's shorthand for noindex and nofollow together.
  • nosnippet. Stops the text snippet, though Google says a static image thumbnail may still show where it makes a better result.
  • max-snippet. Limits the snippet length. Google says setting it to zero is equivalent to nosnippet.
  • noarchive. Stops a cached copy being offered beside your result.
A reference list of directive values, each row holding a short code word beside a plain description
Six values cover almost everything a small business site needs.

Robots Tag Tools

ToolWhat you use it for
Google Search Console URL inspectionSeeing whether a page is indexed and which rule Google found
Browser developer toolsReading the actual tag on a live page, including the HTTP headers
Your SEO pluginSetting the tag per page without editing code
A site crawlerFinding every page carrying noindex across a whole website at once
Your robots.txt fileChecking nothing is blocking the pages you are trying to control
A site crawler report headed Pages carrying a no index rule, listing three page addresses each with a warning icon
A crawler finds every page carrying the rule across a whole site, which is how forgotten ones surface.

Common Meta Robots Mistakes

  • Blocking and noindexing the same page. The block stops the rule being read, so the page can stay in results.
  • Leaving noindex on after a site launch. Staging sites are built with it switched on, and it survives the move more often than anyone admits.
  • Writing noindex in robots.txt, the classic meta robots vs robots.txt error. Google does not support it there, so the line does nothing.
  • Using nofollow to control your own site. It was built for links you do not vouch for, not for steering crawlers around your own pages.
  • Noindexing a page that already ranks. Check Search Console first, because the page may be earning traffic you have not noticed.
  • Judging it by searching for yourself. Use the inspection tool, which reports what Google actually did.
A deployment warning banner reading This site is hidden from search engines above a line reading Left on from staging
The expensive one. Staging sites are built with it switched on, and it survives the move more often than anyone admits.

FAQs

What is the difference between a meta robots tag and robots.txt?

Robots.txt asks a crawler not to fetch a page at all. The meta robots tag sits inside the page and tells the crawler what to do once it has read it. Google says specifying noindex in robots.txt is not supported, so the two are not interchangeable.

Why is my noindex page still showing in Google?

Usually because robots.txt is blocking it. Google says if the page is blocked, the crawler will never see the noindex rule, and the page can still appear in search results. Unblock the page, let it be crawled, and the rule can then take effect.

What does the none value do?

Google's specification says none is equivalent to noindex, nofollow, so it applies both rules at once. Writing the two out in full is clearer for whoever reads the page code after you, including yourself in six months when you are trying to work out why a page vanished.

Can I use a robots tag on a PDF?

Yes, through the HTTP header rather than the page code. Google supports two ways to apply noindex, as a meta tag and as an HTTP response header. A PDF has no head section, so the header is the only route available for it.

What happens if two robots rules conflict?

Google says the more restrictive rule applies, and gives its own example of nosnippet overriding a max snippet setting. Where several crawler specific tags are present on one page, Google says it uses the sum of the negative rules rather than picking one of them to follow.

Conclusion

The tag itself is simple. One line, two common values, and a short list of pages that genuinely need it.

The part that catches people is the interaction with robots.txt, and the rule there is worth remembering on its own. Let the page be crawled, then tell the crawler what to do with it.

Check the handful of pages you want hidden, confirm each one in the inspection tool, and leave everything else alone.

Then write the list down somewhere you will find it again. The pages carrying a noindex tag are the ones nobody remembers a year later, and a forgotten tag on a page you now want found is an expensive thing to go looking for.

If you would rather have the technical side of your site checked properly, see how we approach SEO, or talk to us at Seed Light.

Gregory Yeoh

About the author:

Founder of Seed Light

Gregory Yeoh founded Seed Light in 2017 and works across web design, SEO, paid advertising and automation for small businesses.

Follow the expert:LinkedIn

Let’s talk

Ready to get more
customers?

Tell us what you want to grow or improve. We’ll reply within one working day with honest advice, even if we do not work together.

Prefer email or a call? hello@seed-light.com · +60 16-411 9138

Results so far

Results from real clients

100+

Brands worked with

28,441+

Leads generated

$4.1M+

Sales generated for clients

Up to 13x

Return on Meta ad spend

Tallied from client ad accounts and store reports.

Monthly leads

We reply in one working day