Short definition

Nofollow — a value of the rel attribute on a link that asks search engines not to count the linked page as an endorsement from your site and preferably not to crawl it through that link.

Also known as: nofollow link, rel=nofollow, rel=sponsored, rel=ugc, dofollow.

A nofollow link is a link with rel="nofollow" in the HTML. It asks search engines not to count the linked page as an endorsement from your site. Besides nofollow, there are two more values: rel="sponsored" for paid links and ads, and rel="ugc" for links that visitors post themselves, such as in comments or on a forum.

A regular link doesn’t need a rel value. A nofollow link gets one in the a tag:

html
<a href="https://example.com/">a regular link</a>
<a href="https://example.com/" rel="nofollow">a nofollow link</a>

Nothing changes for visitors. The link looks the same and works as usual. The only difference is what you ask of search engines.

Since 2019, Google has treated nofollow, sponsored and ugc as hints, not as strict rules. According to Google’s 2019 announcement, Google decides how to use these links in Search, along with other signals. Marked links are generally not followed, but Google can still find the linked page through a sitemap or links on other sites and crawl it anyway.

Nofollow, sponsored and ugc: when to use which

Value Use it for Example
sponsored ads, paid placements and links you received something for a sponsored blog post or a paid listing in a directory
ugc links in content that visitors post themselves blog comments, forum posts, guest books
nofollow other links you don’t want to endorse, when neither other value fits a link to a source you mention but don’t recommend

You can combine values, separated by a space or a comma, such as rel="ugc nofollow". For paid links, Google accepts both sponsored and nofollow. Sponsored is preferred. You don’t need to replace existing nofollow links.

Leaving paid links unmarked is the biggest risk. Google’s spam policies explicitly call links that mainly exist to manipulate rankings spam. An unmarked paid link falls into that category.

No, not as an attribute. You’ll often see “dofollow” in SEO articles and link building offers, but rel="dofollow" isn’t a value Google recognizes. A regular link without a rel value is the default. Google fetches and processes it without any extra explanation. When someone promises you “dofollow links,” they mean regular, unmarked links. For paid links, that’s exactly what Google considers spam.

What this means for your own website

For most business websites, it comes down to a few fixed rules:

  • mark paid placements, sponsored articles and affiliate links with sponsored;
  • have comment sections and forums mark links as ugc automatically, or as ugc nofollow;
  • link to sources, partners and clients you actually recommend without a rel value;
  • never set internal links to nofollow.

You still see that last one regularly, for example on links to a login page or the terms and conditions. According to Google, nofollow isn’t meant for links within your own site. If you don’t want Google to fetch one of your own pages, use a disallow rule in robots.txt. If a page must stay out of search results, use noindex and allow crawling.

Don’t confuse nofollow with noopener and noreferrer either. Those values often appear on links that open in a new tab. They’re about security and privacy in the browser, not about how search engines treat the link.

How it relates to other terms

Nofollow is a small part of technical SEO: it’s about how you present links to other sites to search engines. It belongs to the same group of instructions as the canonical URL, which tells search engines which version of a page counts. If you’re thinking about outsourcing link building, first read about the risks in the guide to outsourcing online marketing. If you want someone to check the links and the technical setup of your site, see how we handle SEO optimization.