Nofollow is a value of the rel attribute on a link. It tells search engines that you link to a page without vouching for it, so the link shouldn't pass ranking credit to that page. It looks like this:
<a href="https://example.com/" rel="nofollow">Example</a>
Nofollow is part of the HTML standard, which defines it as a link that the page's author or publisher doesn't endorse. Google introduced it in 2005 to fight comment spam: spammers were filling blog comments with links to borrow the blog's PageRank, and nofollow took that reward away.
When to use nofollow, sponsored or ugc
In 2019 Google added two more specific values next to nofollow. Most links need none of them: a normal link to a page you're happy to recommend needs no rel value at all.
| The link is... | Use | Notes |
|---|---|---|
| Paid: an ad, sponsorship, affiliate link or any link you got something for | rel="sponsored" |
rel="nofollow" is still accepted; Google prefers sponsored |
| Added by users: comments, forum posts, reviews | rel="ugc" |
You can drop it for trusted, long-standing contributors |
| Neither, but you don't want to vouch for the page | rel="nofollow" |
For example, a link to a site you are criticizing |
| A normal editorial link | Nothing | Let it count |
You can combine values with a space or a comma, such as rel="ugc nofollow". Adding nofollow next to the newer values keeps the link flagged for services that only understand nofollow (Google Search Central).
The paid-link row is the one that matters most. Google's link schemes policy treats buying or selling links that pass ranking credit as spam. Paid links are fine as long as they carry sponsored or nofollow; leaving them unmarked risks action against the site (Google spam policies). The same applies to links in widgets you hand out and in press releases distributed to other sites. You can read more about labeling paid placements under sponsored link.
How Google treats nofollow links today
Until 2019 Google simply didn't count nofollow links in its ranking. Since September 2019 it treats nofollow, sponsored and ugc as hints, not commands, and since March 1, 2020 nofollow is a hint for crawling and indexing too.
In practice that changes less than it sounds. Google says it will generally still not use these links for ranking. It switched to hints so it can still learn from them, for example from the words in the link text and from patterns of unnatural linking.
What "hint" does mean: nofollow is not a way to hide a page. Google may still crawl the page, and it can find it anyway through a sitemap or links from other sites. Old existing nofollow links don't need to be changed.
Are nofollow links worth getting?
For rankings, a nofollow link from another site usually counts for little, because Google generally doesn't pass credit through it. But the link still works for people. A mention on a busy forum, in a news story or on Wikipedia can send real visitors, and some of them may later link to you with a normal link.
Many large sites mark outbound links nofollow by default. Wikipedia's external links carry it, because MediaWiki adds it to external links by default. WordPress adds rel="nofollow ugc" to links in comments. So a natural backlink profile always includes some nofollow links; there's no reason to avoid them or to chase them for ranking value.
Don't use nofollow on your own internal links
Some sites once added nofollow to their own links (to the login page, the terms page) to steer more PageRank to the pages that mattered. This "PageRank sculpting" stopped working long ago. Google's Matt Cutts explained in 2009 that Google had changed how PageRank flows: a nofollowed link no longer hands its share to the other links on the page (Matt Cutts). See link sculpting for the history.
For your own site, use the right tool for the job instead:
- To stop Google crawling some of your URLs, use a disallow rule in robots.txt. Google recommends this over nofollow for links within your own site.
- To keep a page out of search results, let Google crawl it and add noindex.
- To make important pages stronger, link to them clearly from your navigation and related pages. That's what internal links are for.
Nofollow on a link vs nofollow on a page
Nofollow also exists as a page-wide rule. In the robots meta tag or the X-Robots-Tag HTTP header, nofollow tells crawlers not to follow any link on that page:
<meta name="robots" content="nofollow">
Don't confuse either with noindex. Nofollow is about links: whether a link should count, or be followed. Noindex is about the page itself: whether it may appear in search results. A noindex page can still have followed links, and a nofollow link doesn't keep the page it points to out of the index.
How to check whether a link is nofollow
Right-click the link in your browser and choose Inspect (or open the page source and search for the URL). Look at the <a> tag: if its rel contains nofollow, sponsored or ugc, the site has qualified the link. If there's no rel, or only values like noopener, it's a normal link. Also check the page's robots meta tag, since a page-level nofollow covers every link on the page.