BlogTechnical SEO

Noindex vs Nofollow vs Disallow: Robots Directives Explained

Noindex vs nofollow vs disallow explained: what each robots directive does, when to use noindex follow, whether nofollow links help SEO and common mistakes.

Elike Solutions 4 min read

Noindex, nofollow and disallow are three different instructions to search engines, and mixing them up is one of the most common technical SEO mistakes. Noindex keeps a page out of search results. Nofollow is about links. Disallow stops crawling. Use the wrong one and pages either vanish from Google or stay in it when they shouldn’t.

This guide explains what each directive does, when to use them, whether nofollow links help SEO and the mistakes we see most often in audits. Fixing them usually takes a developer or a few technical SEO services hours, but deciding which one to use is the hard part.

Noindex vs nofollow vs disallow at a glance

DirectiveWhere it goesWhat it doesUse it for
noindexMeta robots tag or X-Robots-Tag headerKeeps the page out of search resultsThank-you pages, internal search results, thin tag pages
nofollow (page level)Meta robots tagAsks Google not to follow any links on the pageRarely needed
rel=“nofollow” (link level)On a single linkSays you don’t vouch for that linkUntrusted links
rel=“sponsored”On a single linkMarks paid or affiliate linksAds, sponsorships, affiliate links
rel=“ugc”On a single linkMarks user-generated linksComments, forum posts
Disallowrobots.txtStops crawling of matching URLsAdmin areas, endless filters, internal tools

What is noindex?

A noindex directive tells search engines not to show a page in their results. It goes in the page’s HTML as a meta robots tag, or in the HTTP header as an X-Robots-Tag for files like PDFs.

The key rule: Google has to crawl the page to see the noindex. If the page is also blocked in robots.txt, Google never sees the tag, and the URL can stay in the index.

Noindex, follow

“Noindex, follow” asks search engines to keep the page out of results but still follow its links. It’s common on paginated archives and tag pages. Google has said that pages left noindexed for a long time may eventually be treated as noindex, nofollow, so don’t rely on noindexed pages to pass link value long term.

What is nofollow?

Nofollow exists at two levels:

  • Page level (meta robots nofollow): asks Google not to follow any link on the page. Rarely the right choice.
  • Link level (rel=“nofollow”): marks a single link as one you don’t vouch for.

Since 2019, Google treats nofollow, sponsored and ugc as hints rather than strict commands.

Mostly, nofollow links don’t pass ranking value the way followed links do. But because Google treats nofollow as a hint, some may still be used. More importantly, they can bring real visitors and brand visibility, which is why a natural link profile includes a mix of both. We cover the bigger picture in white hat link building for client sites.

What is disallow?

A disallow rule in robots.txt tells crawlers not to request matching URLs. It controls crawling, not indexing. If other sites link to a disallowed URL, Google can still index the URL, usually without a description, because it can’t see the page.

Use disallow for sections that waste crawling, such as admin areas, internal search and endless filter combinations. Don’t use it to hide pages from search; that’s what noindex is for. Our guide to crawlability and indexability explains how the two interact.

When to use each

GoalUse
Keep a page out of search resultsnoindex (and allow crawling)
Stop Google wasting time on useless URLsDisallow in robots.txt
Mark a paid or affiliate linkrel=“sponsored”
Mark links in comments or forumsrel=“ugc”
Link to a page you don’t vouch forrel=“nofollow”
Remove a page from Google quicklynoindex plus a removal request in Search Console

How to check robots directives on a page

  1. View the page source and search for “robots” to find any meta robots tag.
  2. Check the HTTP headers for an X-Robots-Tag, which is easy to miss on PDFs and images.
  3. Open robots.txt and check whether any rule matches the URL.
  4. Use URL Inspection in Search Console to see whether Google can crawl and index the page, and which canonical it chose.
  5. Crawl the site to find every page with noindex or nofollow, so nothing important is excluded by mistake.

Common mistakes with robots directives

  • Noindex plus disallow on the same page. Google can’t see the noindex, so the page may stay indexed.
  • Noindex in robots.txt. Not supported since 2019.
  • Staging noindex left on after launch. A whole site can disappear from Google this way.
  • Nofollow on internal links to “save” link value. It doesn’t work and stops value flowing to your own pages.
  • Disallowing CSS or JavaScript files, which stops Google rendering pages properly.

Check these in every audit. They’re part of the crawling and indexing section of our site audit checklist.

Written by the Elike Solutions team

We’re the white label SEO team behind agencies in the US, UK, Europe and Australia. These guides come from the work we do every day.

Questions

Noindex, nofollow and disallow
questions.

Can’t find your answer? Ask us directly.

What is the difference between noindex and disallow?

Noindex tells Google not to show a page in search results, but Google must be able to crawl the page to see it. Disallow in robots.txt tells Google not to crawl a page, but the URL can still appear in results if other pages link to it.

What does noindex, follow mean?

It asks search engines not to index the page but to follow its links. Google has said that if a page stays noindexed for a long time, it may eventually stop following its links too.

Do nofollow links help SEO?

Google treats nofollow as a hint rather than a strict rule, so nofollow links may sometimes be used for discovery or ranking. They mostly don't pass value the way followed links do, but they can still bring traffic and brand visibility.

Can you put noindex in robots.txt?

No. Google stopped supporting noindex rules in robots.txt in 2019. Use a meta robots tag or an X-Robots-Tag HTTP header instead.

What are rel sponsored and rel ugc?

They are link attributes introduced alongside nofollow. Use sponsored for paid or affiliate links, and ugc for links in user-generated content like comments and forums.

Book a strategy call

Tell us about your clients and what you need. We’ll show you how we’d deliver it, under your brand, at a fixed price.

  • No contracts, no lock-in
  • NDA before we see client details
  • Your logo on every deliverable
I’m…

First-order guarantee

Not happy?
100% refund.

  • Test us on one real client
  • Fixed price, agreed before we start
  • Your logo on every report

Try us on one client, with no risk.

Leave your email and website. We’ll reply with the right service, price and delivery time. Not happy with your first order? We refund 100%.

I’m…