Nofollow
Nofollow is a rel attribute value, rel="nofollow", that tells search engines not to associate a page with a linked URL. Google treats it as a hint since 2019.
What is Nofollow?
Nofollow is a value of the HTML rel attribute, written rel="nofollow", that tells search engines the site does not want to associate itself with, or pass ranking credit to, a linked page. It can also be used page-wide as a robots meta directive. Google introduced nofollow in 2005 to fight comment spam and, since 2019, treats it as a hint rather than a strict rule.
In September 2019 Google added two more specific values, rel="sponsored" and rel="ugc", and from March 2020 began treating nofollow as a hint for crawling and indexing as well as ranking.
Most CMSs and forum platforms let you set these attributes automatically by link type, which is the safest approach at scale. Editors should not have to remember the rules for each link; templates and content models should apply sponsored or ugc wherever a link’s context requires it.
How it works
| Value | Use for | Example |
|---|---|---|
sponsored | Paid, affiliate or compensated links | Sponsored post, affiliate review |
ugc | User-generated content | Blog comments, community forum |
nofollow | Other links you do not vouch for | Link to an untrusted source |
Page-level usage:
<meta name="robots" content="nofollow">
This asks crawlers not to follow any links on the page, which is rarely what you want on a normal content page.
Examples
- For example, a B2B SaaS blog runs a sponsored partner post. Links to the partner use
rel="sponsored"so they comply with Google’s guidelines on paid links. - A community forum for a DevOps product automatically adds
rel="ugc"to links in user posts, discouraging spam while still linking out naturally. - A security vendor links to a malware sample host for research context and adds
rel="nofollow"because it does not want to endorse the destination.
Best practices
- Use
sponsoredfor any link involving payment, free products or affiliate commissions. - Apply
ugcautomatically in comments and forums; consider removing it for trusted, long-standing contributors. - Keep internal links followed.
- Do not use nofollow to try to keep pages out of the index; use noindex.
Common mistakes
- Adding nofollow to every outbound link by default. Linking to good sources is normal and helpful.
- Using page-level
nofollowmeta tags by accident through CMS settings. - Forgetting to qualify paid links, which can trigger a link spam manual action.
Related terms
Sources
Frequently asked questions
What is the difference between nofollow, sponsored and ugc?
Sponsored marks paid, affiliate or otherwise compensated links. Ugc marks links inside user-generated content such as comments and forum posts. Nofollow is the general value for links you do not want associated with your site. Google treats all three as hints and accepts combinations like rel="ugc nofollow".
Does nofollow prevent a page from being indexed?
No. A nofollow link does not stop Google from discovering or indexing the target through other links or sitemaps. To keep a page out of the index, use a noindex robots meta tag or header on that page, and make sure it is crawlable so Google can see the directive.
Should I nofollow internal links?
Generally no. Nofollowing internal links to 'sculpt' PageRank does not work as intended, and it can hinder crawling. If a page should not be indexed, use noindex; if it should not be crawled, use robots.txt, and keep internal links followed.