Preferences

Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website. More information (Cookie Policy)

Nofollow: What a Nofollow Link Is and When to Use It in 2027

Nofollow is a link attribute that tells Google not to associate your site with the linked page. Nofollow vs dofollow, sponsored and ugc, and their SEO value.

Published on
17/10/2026
Updated on
17/10/2026
Reading time
12 min
Sorank customerSorank customerThomas Girauc, Sorank customerCelio Fabiano, Sorank customerSorank customerXavier Breull, Sorank customer
+ 9'000 Subscribers
Nofollow: What a Nofollow Link Is and When to Use It in 2027
Notification: your site reached 20K clicks from Google Search in 28 days

Tools

On this page

Summary

Nofollow is a value of the rel attribute that tells search engines not to associate your site with the page you link to, and not to pass ranking credit through the link. Since 2019, Google treats it as a hint, alongside the sponsored and ugc values.

Want to go further? Ask

Nofollow is a value added to a link with the attribute rel="nofollow", for example <a href="https://example.com" rel="nofollow">. It tells search engines that the site placing the link does not vouch for the destination and does not want to pass ranking credit to it. A link without this attribute is commonly called a "dofollow" link, although no dofollow attribute exists: it is simply a normal link.

Google, Yahoo and Microsoft introduced nofollow in 2005 to fight comment spam, when blogs were flooded with links posted only to manipulate PageRank. In 2019, Google added two more precise values, sponsored and ugc, and announced that all three would be treated as hints rather than strict directives. Understanding them matters both for the links you publish and for the backlinks you receive.

A nofollow link is a hyperlink whose rel attribute contains nofollow. Visitors see no difference: the link works and can be clicked. The difference is for crawlers. Historically, Google did not follow these links and did not count them in its link graph. Today, Google may use them as signals to understand the web, but it generally does not pass ranking credit through them.

Nofollow is set per link. A whole page can also declare nofollow for all its links with the robots meta tag, but this is rarely a good idea, as it cuts the internal circulation of authority described in our page on internal linking.

Nofollow, sponsored and ugc: what is the difference?

rel="sponsored" marks links that result from a commercial agreement: advertising, paid placements, affiliate links, sponsored articles. Google asks that every paid link carry sponsored or nofollow. rel="ugc" marks links in user-generated content, such as comments and forum posts, which the site owner does not control. rel="nofollow" covers the remaining cases where you do not want to endorse the destination.

The values can be combined, for example rel="ugc nofollow". Using nofollow instead of sponsored for a paid link remains acceptable, but sponsored is more precise. Google has said that none of these attributes will trigger a penalty when used on legitimate links.

Directly, they pass little or no ranking value, so they do not build authority the way an editorial link does. Indirectly, they can be useful. A nofollow link from a major media outlet, a Wikipedia reference or a popular forum thread brings qualified visitors, makes your brand known and can lead journalists or bloggers to cite you with a normal link. A natural link profile also contains a share of nofollow links: a profile made only of followed links on exact anchors looks artificial.

Third-party tools such as Ahrefs or Moz count nofollow and followed links separately. When you analyse a profile with Sorank's backlink analysis tool, look at both: the followed links tell you about authority, the nofollow links about visibility and mentions.

Add rel="ugc" to every link that a visitor posts: in comments, forum threads, reviews and profile fields. Google recommends this value for user-generated links, which tells search engines that you did not write the link or vouch for its destination. Links written by your own team keep no attribute.

Where the link appearsWho wrote itAttribute to use
Blog commentsA visitorugc
Forum posts and repliesA memberugc
Product reviewsA customerugc
Profile or signature linksA memberugc
Paid placement in a guest articleAn advertisersponsored
Article written by your teamYouNo attribute

How to write it

Put the attribute on the anchor tag itself:

<a href="https://example.com/" rel="ugc">the reviewer's website</a>

Many publishing tools add the attribute on their own, and many do not. Post a test comment with a link, then open the page source and check the tag. If the attribute is missing, add it in your settings or ask your developer to add it to the template.

The attribute does not replace moderation

Google's spam policies describe user-generated spam as spammy content added to a site "through a channel intended for user content". Site owners are often unaware of it. Comment spam and spammy forum posts are among Google's examples. A ugc value tells search engines not to vouch for the link, but the spam stays on your page and visitors still see it.

Set a simple routine. Hold the first comment from a new visitor for approval, delete links that have nothing to do with the topic, and review your forum every week.

Tip

Google says you can remove the ugc value for members who consistently post high-quality content. Check the member's history before you do, and treat it as a case-by-case decision rather than a rule for everyone.

AI search also cites forums and discussion sites, so user content matters for GEO too. Read our pages on user-generated content and UGC citations to see how.

The sponsored link attribute is the value rel="sponsored" on an anchor tag. It tells search engines that the link exists because of a payment, a gift or another commercial deal. Google asks you to put it, or nofollow, on every paid link, and says sponsored is the preferred value.

The test is simple: if you received something in exchange for the link, mark it. Google's spam policies list money, goods, services and free products sent in exchange for a review that includes a link.

LinkAttribute
Banner or text ad sold on your sitesponsored
Affiliate link, added by hand or by a pluginsponsored
Links to the brand in an article it paid forsponsored
Link in a review of a product you received for freesponsored
Partner you recommend with no payment or giftNo attribute

How to write it

Put the value on the anchor tag itself. To stay compatible with services that do not read the newer values, Google's 2019 announcement allows you to add nofollow next to it, separated by a space:

<a href="https://brand.example/" rel="sponsored">Brand</a>
<a href="https://shop.example/?ref=42" rel="sponsored nofollow" target="_blank">See the price</a>

The noopener and noreferrer values are browser security and privacy settings. They say nothing to search engines about payment, so they never replace sponsored.

What happens if you leave it out

Google has said that sponsored links are the only case where choosing the wrong value matters. Marking a normal link as sponsored has little effect. Leaving a paid link unmarked is the real risk. In a post dated July 26, 2021, Duy Nguyen of Google Search Quality wrote that unqualified affiliate links, and unmarked links in sponsored or guest posts, can lead to manual and algorithmic actions. Our page on Google penalties explains how to spot and lift a manual action.

Mistakes to avoid

  • Marking the body links of a paid article but forgetting the author box, the logo link and the button at the end. Every link to the advertiser needs the value.
  • Trusting an affiliate plugin without checking. Many route links through a path on your own domain, such as /go/. Open the page source and check that those anchors carry the value too.
  • Thinking the attribute informs readers. It is invisible on the page, and advertising rules in many countries also ask for a visible label such as “Sponsored” or “Ad”. Our guides to sponsored content and affiliate links cover disclosure.

Tip

When you sell a sponsored article, write the rel value into the brief or the contract. The advertiser then knows before paying that the links will carry sponsored, and you avoid a dispute after publication.

Nofollow links help SEO indirectly. Google treats nofollow as a hint for ranking, so it may use the link as a signal, but it does not promise to pass ranking credit. The practical question is not whether a link counts in theory. It is whether it brings visitors, mentions or followed links later. You can answer that with data you already have.

Four signals to check

SignalWhat to checkWhere to look
Referral visitsSessions from the linking domain in the 90 days after the link appearedYour analytics, referral report
Branded searchesSearches for your brand name after the mentionGoogle Search Console, query filter
Later followed linksNew links from the same site, or from writers who saw the mentionYour backlink tool
PlacementBody text or footer, since a link in the body text is seen by more readersA manual check of the page

Start a simple log. For each nofollow link, note the date, the site, the placement and the visits you got in the following month. After a few months, the pattern shows which sites send real readers and which ones only add a mention to your profile. Keep the log next to your backlink data, and review lost links with the method in our page on backlink monitoring.

Do not chase nofollow links for the count alone. A profile with many nofollow mentions from irrelevant sites adds little. One mention in a respected trade publication can bring more readers, and more later links, than many directory listings.

Tip

When a nofollow mention sends readers, thank the writer and offer a useful source for their next article. A good relationship with one writer can lead to a followed link later.

When should you use nofollow on your own site?

Add sponsored to every link you are paid for or that results from a partnership with compensation. Add ugc, or nofollow, to links posted by users in comments, reviews or forums, especially if moderation is light. Use nofollow for links you have to include but do not recommend, for example a source you criticise. Keep normal links for everything you cite because it is useful: good sources, partners you trust, your own pages.

Common nofollow mistakes

The first mistake is putting nofollow on all outbound links "to keep PageRank". This brings no benefit and makes your content look less trustworthy, since citing quality sources is a sign of serious work. The second is nofollowing internal links to sculpt PageRank: Google stopped redistributing the credit of nofollowed links around 2009, so the value is lost rather than saved. The third is selling or buying followed links disguised as editorial content, which Google's spam policies target directly.

Can you set nofollow in an HTTP header?

Yes. The X-Robots-Tag HTTP header accepts the same rules as the robots meta tag, including nofollow. Your server sends it with the response for a URL, and it tells crawlers not to follow the links on that URL. Use it when you cannot add a meta tag to the page, for example on a PDF, where there is no HTML head to put one in.

How to add the header

The header is set in your server configuration, not in the HTML. Two common examples:

# Apache, in .htaccess (requires mod_headers)
Header set X-Robots-Tag "nofollow"

# nginx, in the server or location block
add_header X-Robots-Tag "nofollow";

Without a user agent, the rule applies to all crawlers. You can also name one crawler, as in googlebot: nofollow, to target Googlebot only.

Header or meta tag: which one to use

SituationUse
HTML page you can editRobots meta tag, <meta name="robots" content="nofollow">
PDF, image or other non-HTML fileX-Robots-Tag header
Pages from a template you cannot edit, but server settings you canX-Robots-Tag header
One link onlyrel="nofollow" on the anchor tag

Mistakes to avoid

  • Adding the header to the whole site by accident. A rule that matches every URL makes every page nofollow, which cuts the paths between your pages. Test a few URLs before you deploy.
  • Blocking the URL in robots.txt. A crawler that cannot fetch the page never reads the header.
  • Expecting it to remove the page from search. Nofollow only affects links. To keep a page out of results, read our page on noindex.

After you deploy, check the response with our free HTTP headers checker. The X-Robots-Tag line should appear for each URL you targeted, and for no others.

Why nofollow matters for SEO and GEO

For SEO, the rel attributes are how you keep your outbound linking compliant and how you read the real value of the links you earn. For GEO, the boundary is less strict. AI assistants such as ChatGPT or Perplexity do not apply nofollow when they read a page: a mention of your brand in a forum thread or a review site counts as a citation even if the link is nofollow. Being present in the sources the AIs read matters as much as the attribute on the link.

Sorank helps you obtain natural backlinks automatically: its backlinks acquisition feature places one-way editorial links between the sites of its users, in articles related to your topic.

Conclusion

Nofollow is a rel value that tells search engines not to endorse a link. With sponsored for paid links and ugc for user content, it lets you describe your links honestly. Nofollow links pass little ranking value, yet they still bring traffic, mentions and a natural profile, and they count as citations in the eyes of the AIs.

To go further, read our pages on link building and anchor text. Reference sources: Google on qualifying outbound links and Google's 2019 announcement on the evolution of nofollow.

The ugc link attribute is written as rel="ugc" on an anchor tag, and it only works on <a> elements. When you need more than one value, list them with a space between them, as in rel="ugc nofollow". The syntax is simple, but a small typo can switch the value off without any warning, so check the markup itself rather than trusting the settings of your publishing tool.

How browsers read the rel value

The rel attribute is a list of keywords. The browser splits it at each space, so every keyword counts on its own. Commas are not separators, which makes them an easy mistake to miss.

MarkupWhat the browser reads
rel="ugc"One value: ugc
rel="ugc nofollow"Two values: ugc and nofollow
rel="ugc,nofollow"One unknown keyword, so neither value applies

Check the attribute on your live pages

Open a page that has comments and launch the browser console (F12 on Windows, Cmd+Option+J on a Mac). Run the line below, replacing .comments with the class your theme uses. It lists every link inside the comment block that does not carry the ugc value.

document.querySelectorAll('.comments a:not([rel~="ugc"])')

The ~= test matches ugc as one word inside the list, so rel="ugc nofollow" passes. An empty list means every link in the block carries the value.

Common errors that break the value

  1. Commas between values. rel="ugc,nofollow" is read as one unknown keyword, so neither value applies.
  2. The attribute on another element. Google uses these values only on <a> elements it can crawl, so a value set on any other tag does nothing.
  3. A value lost in an update. A plugin or theme update can rewrite comment markup, so check a test comment again after each update.
  4. Expecting the value to hide a page. Google can still crawl a linked page if it finds that page through a sitemap or a link from another site. To keep crawlers away from a page, use robots.txt.

Google Search Central explains these values in its guide on qualifying outbound links.

Sources

Frequently asked questions

What is the difference between nofollow and dofollow links?

A dofollow link is simply a normal link without a restrictive rel value: search engines can follow it and pass ranking credit. A nofollow link carries rel="nofollow", which asks search engines not to associate the two sites and generally not to pass ranking credit. Visitors can click both in the same way.

Are nofollow links ignored by Google?

Not entirely. Since 2019, Google treats nofollow, sponsored and ugc as hints. It may use them to discover pages or understand the web, but in most cases they pass little or no ranking value. They remain useful for traffic and brand visibility.

Do I have to use nofollow for affiliate links?

Yes, or preferably rel="sponsored". Google asks that links resulting from payment, including affiliate links, be qualified with sponsored or nofollow. Leaving them as normal links can be considered a link scheme under Google's spam policies.

Our Blog for Ambitious Company

Testimonials from ambitious founders

0 to 10000 visitors in 5 months

Celio Fabianomonrobotlavevitre.frGoogleE-commerce

0 to 5000 visits in 8 months

Thibault BMsorank.comGoogleSoftware

0 to 1104 clicks in 4 months

Dominiqueflight-sensations-idf.comGoogleLeisure and aviation

0 to 163 clicks in 6 months

Coworking Pariscoworking-paris.frGoogleOffice broker

x92 clicks in 7 months

Guide Zanzibarguidezanzibar.comGoogleTravel