How (and When) to Add Nofollow to a Link: Nofollow, Sponsored, and UGC

Dofollow vs nofollow links

Every normal link from your site passes some trust (often called link equity) to the page it points to. That is fine for links you genuinely recommend. But for paid, affiliate, or untrusted links, Google wants you to add a special attribute. Get it wrong with paid links and you risk a penalty; I learned this the hard way when one of my blogs was penalized for a paid link without nofollow.

Here is when and how to use nofollow, and the newer sponsored and ugc attributes, in 2026.

The Three Link Attributes

AttributeUse It For
rel="sponsored"Paid links: ads, sponsored posts, and affiliate links
rel="ugc"User-generated content, such as comments and forum posts
rel="nofollow"Any other link you do not want to vouch for

Google introduced sponsored and ugc in 2019 and now treats all three as hints rather than strict commands. Using nofollow on paid links is still acceptable, but sponsored is the most accurate. You can combine them, for example rel="sponsored nofollow".

When to Add Nofollow or Sponsored

  • Paid links and sponsored posts: always use sponsored (or nofollow). Selling followed links violates Google’s spam policies.
  • Affiliate links: use sponsored. See how to manage and cloak affiliate links.
  • Banner ads sold directly to advertisers.
  • Untrusted or low-quality sites you need to mention.
  • Embedded widgets or badges that include keyword-rich links back to their creator.

When Not to Use Nofollow

Do not nofollow every outbound link. Linking to helpful, relevant sources with normal links is natural and good for readers. Your own internal links should also be normal (followed) links.

How to Add Nofollow to a Link

Method 1: HTML

A normal link looks like this:

<a href="https://example.com">Example</a>

Add the rel attribute to make it nofollow (or sponsored):

<a href="https://example.com" rel="nofollow">Example</a>

In the block editor, select the block, click the three dots in its toolbar, and choose Edit as HTML to add it.

Method 2: Your SEO Plugin (Easiest)

Rank Math and All in One SEO add nofollow and sponsored toggles to the link popup in the block editor, so you just tick a box when adding a link. Rank Math can also add nofollow to all external links automatically, with exceptions for domains you trust.

Method 3: A Dedicated Plugin

If your SEO plugin does not offer this, see our list of the best nofollow plugins for WordPress. Affiliate link plugins such as ThirstyAffiliates also add nofollow and sponsored automatically.

Frequently Asked Questions

Do nofollow links help SEO?

They pass little or no ranking value, but they can still bring traffic and brand awareness.

Should affiliate links be nofollow or sponsored?

Sponsored is the most accurate, and nofollow is also acceptable. Use one of them on every affiliate link.

Are blog comment links nofollow?

Yes. WordPress automatically adds nofollow and ugc to links in comments.

Comments

11 responses to “How (and When) to Add Nofollow to a Link: Nofollow, Sponsored, and UGC”

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Dilshad Avatar
    Dilshad

    I am using commentluv plugin on my blog. Is there any problem that I have to face in future?

  2. noyon Avatar
    noyon

    Thank you bro for your great article. if I share any file like android app,
    It should be nofollow or not?

    1. Istiak Rayhan Avatar
      Istiak Rayhan

      No, if the file is on Google Play store. But if you are referring to a free download site like Mediafire, then you can consider tagging the link as nofollow.

  3. Mohammed Saimon Avatar
    Mohammed Saimon

    Thanks Istiak for your this post. Now I’m going to install the Ultimate Nofollow Plugin. Thanks once again.

  4. سئو Avatar
    سئو

    Hi Istiak , its good post and i want to share it on my blog , can i?
    its my blog.
    thanks

    1. Istiak Rayhan Avatar
      Istiak Rayhan

      Glad you found my post useful. But I don’t think it would be a good idea to share this post on your blog, because Google will consider it as copied content. I would suggest you to rewrite this post on your own way.

      1. سئو Avatar
        سئو

        hi.
        i will translate and rewrite this post and then share on my blog.
        my blog language is persian and i dont think that google block me.
        very thanks.

        1. Istiak Rayhan Avatar
          Istiak Rayhan

          Yes, you can rewrite the post. But don’t translate the exact same post. Google bot may consider it as spam as it can translate.

  5. Nikhil ganotra Avatar
    Nikhil ganotra

    Heyy Istiak,
    You have delivered great tips regarding dofollow and no follow links. I was having a misconception regarding them from a long period of time and this article has cleared them all. I have many affiliate links on my blog. Should I give them nofollow or dofollow links?

    BTW thanks for sharing this awesome article. :)

    1. Istiak Rayhan Avatar
      Istiak Rayhan

      Yes, you should give nofollow tag to all affiliate links.

  6. Kaloyan Banev Avatar
    Kaloyan Banev

    It is fairly easy and there are few different ways to do that. Additionally can add medium page which is no-index for all outbound links.