Nofollow Attribute: How to Use Rel="Nofollow" Correctly for SEO

Quick Answer
The nofollow attribute is the commonly used name for rel="nofollow", a relationship value added to an HTML link. It tells search engines about the publisher's relationship with the destination and indicates that the publisher does not want to associate their site with that link. Google generally treats qualified links as hints rather than absolute instructions. For paid links, use rel="sponsored"; for user-generated links, consider rel="ugc".
Key Takeaways
- Nofollow is a value inside the HTML
relattribute, not a separate attribute on an ordinary hyperlink. - Use
rel="nofollow"when you do not want to endorse or associate your site with a destination and another relationship value does not better describe the link. - Use
rel="sponsored"for paid placements and affiliate links. - Use
rel="ugc"for links in user-generated content, such as comments and forum posts. - Google treats qualified links as hints, not guaranteed crawl or indexing restrictions.
- A nofollow link does not automatically prevent a destination from appearing in search results.
- Use
noindexwhen your goal is to prevent an eligible page from being indexed, rather than relying on an anchor's nofollow value.
What Is the Nofollow Attribute?
The nofollow attribute is an SEO term for a value used in the rel attribute of an HTML hyperlink. It communicates that the publisher does not want to endorse or associate their website with the linked destination.
Here is a simple example:
<a href="https://example.com/" rel="nofollow">Visit Example</a>
There are three important parts:
a: The HTML anchor element that creates the hyperlink.href: The destination address that the visitor reaches after clicking.rel="nofollow": The relationship information associated with that hyperlink.
The distinction matters because nofollow is not technically an independent HTML attribute. The rel attribute describes the relationship between the current document and the linked resource. Nofollow is one of the values it can contain.
Website owners commonly use it for external links they do not want to endorse. For example, a publisher might link to an unfamiliar website in a discussion about questionable online services without recommending that website to readers.
The value does not make the link disappear. Visitors can still click it, and the browser can still open the destination.
For the underlying HTML specification and relationship values, see the MDN reference for the HTML rel attribute.
How the Nofollow Attribute Works in HTML
Adding nofollow to a hyperlink is straightforward. You place it inside the existing rel attribute of the anchor element.
1. Ordinary Editorial Link
A normal editorial link does not generally need a special relationship value:
<a href="https://example.com/">Read the Example Guide</a>
If you are linking to a source because it genuinely helps your readers, you do not need to add nofollow simply because the destination is another website.
2. Unendorsed External Link
If you want to link to a destination without endorsing or associating your site with it, you can use:
<a href="https://example.com/" rel="nofollow">Visit Example</a>
This is the traditional nofollow implementation. It communicates the relationship you intend to establish with the destination.
3. Sponsored Link
For an advertisement or paid placement, use:
<a href="https://example.com/" rel="sponsored">Sponsored Website</a>
This identifies the commercial nature of the relationship more clearly than using generic nofollow alone.
4. Affiliate Link
Affiliate links involve a commercial relationship in which the publisher may receive a commission or other compensation when a visitor makes a qualifying purchase or completes an action.
For example:
<a href="https://example.com/product" rel="sponsored">View the Product</a>
Google recommends using rel="sponsored" for affiliate links, whether they are inserted manually or generated dynamically.
Read Google's guidance on qualifying outbound links for the current recommendations.
5. User-Generated Content Link
Links submitted by visitors in comments, discussion boards and forums can use the ugc value:
<a href="https://example.com/" rel="ugc">Visitor's Website</a>
UGC stands for user-generated content. It identifies links that originate from users rather than from the website's editorial team.
6. Combining Relationship Values
HTML allows multiple relationship values in the same rel attribute. Separate them with spaces:
<a href="https://example.com/" rel="ugc nofollow">Visitor's Link</a>
This identifies the link as user-generated while also communicating the nofollow relationship.
You should select values according to the actual relationship behind the link. Adding every available value to every external hyperlink is unnecessary.
Nofollow vs Sponsored vs UGC
Although these three values are related, they communicate different information. Choosing the correct one starts with understanding how the link was created and why it exists.
| Link situation | Recommended rel value | Why it is used |
|---|---|---|
| Ordinary editorial reference | No qualification normally needed | A natural editorial recommendation or reference |
| Paid advertisement | sponsored |
Identifies a commercial placement |
| Affiliate product link | sponsored |
Identifies an affiliate relationship |
| Blog comment link | ugc |
Identifies visitor-submitted content |
| Forum discussion link | ugc |
Identifies user-generated content |
| Unendorsed external destination | nofollow |
Communicates that the publisher does not want to associate with the destination |
| User-generated link that also should not be endorsed | ugc nofollow |
Combines two relevant relationship values |
When Should You Choose Nofollow?
Use nofollow when you have a legitimate reason not to endorse or associate your website with a destination, and neither sponsored nor ugc more accurately describes the relationship.
For example, imagine publishing an article that discusses a website's questionable claims. You may need to link to that website so readers can examine the original material. The link provides useful context, but it does not represent an endorsement.
In that situation, nofollow may be appropriate.
When Should You Choose Sponsored?
Choose sponsored when the link is part of an advertising or other paid arrangement. This includes affiliate relationships.
The value helps search engines understand that the link exists because of a commercial relationship rather than an ordinary editorial recommendation.
When Should You Choose UGC?
Choose ugc when the link comes from content submitted by website visitors. Examples include:
- Blog comments.
- Forum discussions.
- Community contributions.
- Other visitor-submitted content.
Website owners can also combine ugc and nofollow when both descriptions accurately reflect the link.
Google explains these distinctions in its official outbound link qualification documentation.
How Google Treats Nofollow Links Today
Google's treatment of nofollow has changed over time. Understanding that change helps avoid outdated SEO advice.
The Original Nofollow Approach
Nofollow was introduced to help website owners identify links they did not want to endorse. It became particularly useful for managing links in comments, advertisements and other situations where the publisher did not want to pass an ordinary editorial endorsement.
For years, many SEO explanations described nofollow as a directive that prevented Google from following a link.
That explanation is no longer an accurate description of Google's complete approach.
Google's 2019 Announcement
In September 2019, Google introduced two additional relationship values:
rel="sponsored"for advertisements and paid placements.rel="ugc"for user-generated content.
Google also announced that it would treat nofollow and the new values as hints for Search rather than absolute directives.
The change took effect on March 1, 2020, for crawling and indexing purposes, according to Google's announcement.
You can read the original announcement here:
Google Search Central: Evolving nofollow – new ways to identify the nature of links.
What Does the Hint Model Mean?
A hint gives Google information about how a publisher classifies a link. It does not guarantee one specific outcome for crawling, indexing or ranking.
For example, adding rel="nofollow" does not guarantee that Google will permanently ignore the destination URL. Google may discover the same URL through another website, another link or another source.
Likewise, you should not assume that every nofollow link will be treated as an ordinary followed link.
The practical lesson is simple: use the correct relationship value to describe the link accurately. Do not use it as a guaranteed way to control Google's complete processing of a URL.
Does Nofollow Prevent Crawling or Indexing?
No. An individual hyperlink marked nofollow does not guarantee that the destination cannot be crawled or indexed.
This is one of the most important distinctions in technical SEO because crawling, indexing and link qualification are separate concepts.
Link-Level Nofollow
Consider this example:
<a href="https://example.com/" rel="nofollow">Example</a>
The nofollow value applies to this individual hyperlink. It communicates the publisher's intended relationship with the destination.
It does not remove the destination from the web or guarantee that search engines cannot discover it through another route.
Page-Level Robots Nofollow
There is also a page-level robots directive:
<meta name="robots" content="nofollow">
This is different from putting rel="nofollow" on an individual anchor. The robots meta directive concerns links on the page, while an anchor's rel value concerns that particular hyperlink.
Noindex Is Different
If your actual goal is to prevent an eligible page from appearing in Google Search, the relevant directive is generally noindex:
<meta name="robots" content="noindex">
Google must be able to access the page to read its noindex instruction. Blocking crawling in robots.txt can prevent a crawler from seeing that instruction.
Do not confuse these mechanisms:
| Mechanism | Main purpose |
|---|---|
Anchor rel="nofollow" |
Qualifies an individual hyperlink |
Robots meta nofollow |
Provides a page-level instruction concerning links on that page |
Robots meta noindex |
Requests that an eligible page not appear in search results |
| robots.txt | Controls crawler access to URL paths according to its rules |
For the exact implementation rules, consult Google's robots meta tag documentation.
You can also read our related guide to blog meta tags and robots directives, which covers page-level metadata and how to check it.
Can Google Discover a Nofollow URL Through Another Link?
Yes. Suppose Page A links to Page B using nofollow. Page C might independently link to Page B without nofollow.
Google can discover Page B through Page C. Other discovery sources may also expose the URL.
Therefore, adding nofollow to one link is not a reliable method of preventing a destination from being crawled or indexed.
Google explains this limitation in its crawling myths documentation.
When Should You Use the Nofollow Attribute?
The right choice depends on your relationship with the destination, not simply whether the URL belongs to another website.
Links to Websites You Do Not Endorse
Suppose you are discussing a third-party website whose content you cannot independently endorse. You want readers to examine the original source, but you do not want the link to represent a recommendation.
A nofollow value may be suitable if the link does not fall into a more specific category such as sponsored or user-generated content.
Paid Articles and Advertisements
If another business pays you to publish a link, use an appropriate qualification for the commercial relationship.
Google recommends rel="sponsored" for paid placements. Nofollow remains an acceptable alternative for qualifying paid links, but sponsored communicates the relationship more specifically.
Affiliate Marketing
Affiliate publishers should qualify their commercial links. A product recommendation that generates commission is not the same as an ordinary unpaid editorial reference.
Use sponsored for affiliate links in line with Google's guidance.
Blog Comments and Forums
If visitors can submit links through comments or discussion threads, ugc is an appropriate relationship value for identifying those links.
You may also use nofollow alongside ugc when appropriate.
Ordinary Editorial References
Do not automatically add nofollow to every external link. If you are citing a trustworthy source because it supports your article, a normal editorial link is generally appropriate.
The goal is to describe the actual relationship, not to make all outgoing links identical.
Nofollow Does Not Make Link Spam Acceptable
A common misconception is that adding nofollow makes every paid or manipulative backlink arrangement acceptable.
That is not correct. Google's spam policies address the underlying practices, including buying or selling links for ranking purposes and automated link creation.
Commercial links should be qualified appropriately, but qualification does not provide blanket protection for otherwise prohibited manipulative behavior.
Read Google's spam policies for Google Web Search before planning commercial link arrangements.
How to Check Whether a Link Uses Nofollow
You can inspect an existing hyperlink using your browser's developer tools. You do not need a paid SEO platform just to see the HTML relationship value.
Follow these steps:
- Open the webpage containing the link.
- Right-click the hyperlink.
- Select Inspect or the equivalent browser developer-tools option.
- Find the corresponding anchor element in the HTML.
- Look for its
relattribute. - Check whether the value contains
nofollow,sponsoredorugc.
For example, you might find:
<a href="https://example.com/" rel="nofollow">Example</a>
This confirms that the inspected HTML contains the nofollow value.
If you find:
<a href="https://example.com/" rel="sponsored">Example</a>
The link is marked as sponsored instead.
If the anchor has no rel attribute, it has no explicitly specified relationship value in that markup. That is not automatically an error.
A Practical Link Inspection Checklist
Before changing an existing link, ask:
- Is the link an ordinary editorial reference?
- Is there payment, advertising or an affiliate relationship?
- Was the link submitted by a visitor?
- Does the publisher actually want to endorse the destination?
- Is the intended goal about link qualification, crawling or indexing?
- Does the selected rel value accurately describe the relationship?
Remember that inspecting HTML tells you what the page currently contains. It does not reveal with certainty how Google has processed the link internally.
Common Nofollow Mistakes
1. Treating Nofollow as a Separate HTML Attribute
Incorrect terminology can lead to incorrect implementation. On an ordinary anchor element, nofollow belongs inside the rel attribute.
Correct:
<a href="https://example.com/" rel="nofollow">Example</a>
2. Using Nofollow to Prevent Indexing
An anchor-level nofollow value does not guarantee that a destination page will stay out of search results. Use an appropriate noindex directive when your goal is page-level indexing control.
3. Adding Nofollow to Every External Link
Not every external destination is untrusted. Ordinary editorial references generally do not need qualification.
Apply relationship values based on the actual purpose and origin of the link.
4. Using Nofollow Instead of Sponsored for Every Paid Link
Google recommends sponsored for paid placements and affiliate links. It is more descriptive of the relationship.
5. Assuming Nofollow Guarantees No Crawling
A URL can still be discovered through another link or source. Do not treat nofollow as an absolute crawl prohibition.
6. Assuming Every Nofollow Backlink Is Harmful
A nofollow backlink is not automatically a penalty or a sign that a website has a problem. Evaluate the overall backlink context rather than judging a website by one relationship value.
7. Believing Nofollow Makes Any Link-Building Practice Safe
The underlying link arrangement still matters. Manipulative link schemes can violate Google's spam policies regardless of how a publisher labels individual links.
Frequently Asked Questions
What Does the Nofollow Attribute Mean?
The nofollow attribute is the commonly used name for the nofollow relationship value inside an HTML link's rel attribute. It communicates that the publisher does not want to endorse or associate their site with the linked destination.
Is Nofollow an HTML Attribute?
Technically, no. The HTML attribute is rel. Nofollow is one of its possible values, as in rel="nofollow".
Does Google Still Follow Nofollow Links?
Google generally treats qualified links as hints rather than absolute directives. A nofollow link does not guarantee that Google will ignore a destination, nor does it guarantee that Google will follow it.
Does a Nofollow Link Help SEO?
A nofollow link can still provide referral traffic, visibility and an opportunity for visitors to discover your content. However, you should not assume that it passes ranking credit or produces a measurable ranking improvement. Google does not provide a universal ranking benefit for individual nofollow links.
Should Affiliate Links Use Nofollow or Sponsored?
Google recommends rel="sponsored" for affiliate links because it identifies the commercial relationship. Nofollow is an acceptable alternative for qualifying paid links, but sponsored is the more specific choice.
Can a Nofollow Page Still Be Indexed?
Yes. A destination can be discovered through other links or sources. Nofollow on one hyperlink does not guarantee that the destination will remain outside search results.
What Is the Difference Between Nofollow and Noindex?
Nofollow qualifies a link or, in a separate robots meta context, gives a page-level instruction concerning links. Noindex is a page-level directive that requests that an eligible page not appear in search results.
Should Every External Link Have Nofollow?
No. Ordinary editorial links generally do not require nofollow. Use sponsored for paid relationships, ugc for user-generated links, and nofollow when you have a relevant reason not to associate your site with a destination.
Can I Combine UGC and Nofollow?
Yes. Multiple rel values can be separated by spaces. For example, rel="ugc nofollow" identifies a user-generated link that is also marked nofollow.
Conclusion
The nofollow attribute remains an important part of responsible link qualification, but using it correctly requires understanding what it actually does.
Remember that nofollow is a value of the HTML rel attribute, not an independent attribute. Use sponsored for paid and affiliate relationships, ugc for visitor-submitted links, and nofollow when you do not want to associate your site with a destination and another value does not better describe the relationship.
Most importantly, do not confuse link qualification with crawling or indexing control. A nofollow link does not guarantee that Google cannot discover its destination. Choose the relationship value that accurately describes the link, and use the appropriate page-level directive when your actual goal concerns indexing.