Updated September 2026

rel="nofollow", rel="sponsored" and rel="ugc": Use the Right Link Attribute

Not every outbound link needs nofollow. Google provides different rel values for paid links, user-generated links and other links you do not want associated with your site.

Start with the default

A normal editorial link usually needs no special rel value

When you link naturally to a useful source that you trust, a normal HTML link is enough:

<a href="https://www.example.com/guide">Useful guide</a>

Use special link qualifications when the relationship between your page and the destination needs to be explained to search engines.

Quick navigation: sponsored · ugc · nofollow · internal links · crawl/index
Three common values

Choose the rel value based on why the link exists

ValueUse it forExample
sponsoredAdvertisements, paid placements, sponsorships and other compensated linksAffiliate or paid promotional link
ugcUser-generated content such as comments and forum postsA link posted by a forum member
nofollowWhen the other values do not apply and you would rather Google not associate your site with, or crawl the linked page from, your pageAn untrusted reference you still need to mention
User-generated content

Use rel="ugc" for comment and forum links

<a
  href="https://member.example/resource"
  rel="ugc">User-posted resource</a>

Automatically qualifying links added through comments, profiles or forums can reduce incentives for link spam and clearly identifies that the publisher did not create the linked content.

Other untrusted links

Use rel="nofollow" when the more specific values do not fit

<a
  href="https://example.com/untrusted-reference"
  rel="nofollow">Reference</a>

This is different from the older idea that every external link should be nofollowed simply to “keep PageRank.” Useful editorial links can help users understand a topic and verify claims.

Google's current documentation says links carrying these attributes will generally not be followed, but the destination can still be discovered through other routes such as sitemaps or links from other sites.

Multiple values

rel values can be combined

<a
  href="https://member.example/link"
  rel="ugc nofollow">User link</a>

Combining values is useful when more than one relationship needs to be expressed.

Internal links

Do not use nofollow as an internal PageRank-sculpting technique

The old version of this article suggested using nofollow on internal links such as Contact or Disclaimer pages to conserve “link juice.” That is not a good modern internal-linking strategy.

Internal links should normally remain crawlable and should help users move through related content. Use descriptive anchor text and link useful related pages naturally. Our pillar page and topic cluster guide explains how to organize those relationships.

If you truly need to prevent Google from fetching an internal URL, use the appropriate crawl-control mechanism. If you need a crawlable page excluded from search results, use a supported noindex directive instead.

Do not confuse link qualification with indexing control

nofollow on a link does not mean the destination cannot be indexed

A page may be discovered through other links, sitemaps or other sources. If the objective is to keep your own page out of search results, use the correct indexing control rather than trying to achieve it through inbound nofollow links.

See Index, Noindex, Canonical or Sitemap? for the correct mechanism by situation.

PHP example

Output a qualified link from PHP

echo "<a href='https://advertiser.example/' rel='sponsored'>Visit advertiser</a>";

Because the entire link is inside the PHP string, there is no PHP variable interpolation to worry about in this example. When displaying PHP code to learners from inside another PHP string, remember to escape literal variables so the tutorial renders them correctly.

Summary

Qualify the relationship, not every outbound link

Use sponsored for paid links, ugc for user-generated links and nofollow when the other values do not apply and you do not want the normal association. Keep normal editorial and internal links normal when they are useful and trustworthy.

Official reference

References and related Plus2Net guides