Pick the value by why the link is there. Paid and affiliate links get rel="sponsored", links your visitors post get rel="ugc", and links you won’t vouch for get rel="nofollow". Sources you trust and your own pages need nothing.
Much of it can be set once. WordPress has added nofollow ugc to comment links since version 5.3, bbPress and Discourse tag forum posts by default, and link plugins can mark every affiliate link sponsored.
Check the published HTML. One line in the browser console lists every outbound link and its rel value. Run on the article text of 35 of our posts, the same rule found 547 outbound links and no nofollow, as expected for citations.
The rel="nofollow" value tells Google not to associate your site with the page a link points to, or to crawl that page from yours. To add it to a link, put the attribute inside the link’s opening tag, as in <a href="https://example.com/" rel="nofollow">. In the WordPress block editor, select the link, open Advanced and turn on Mark as nofollow. Use rel="sponsored" instead for anything you were paid for, affiliate links included, and rel="ugc" for links your visitors post in comments or forums. Leave trusted sources and internal links alone, then check the published HTML.
Markzone sells guest posts and link insertions on publishers’ sites, so how publishers tag paid links matters to our business. This guide is about the links on your own site. Every WordPress, plugin and forum setting below was checked in its maker’s documentation or source code on 24 November 2026.
All three values have been hints for ranking since Google announced sponsored and ugc on 10 September 2019. Google said nofollow would also become a crawling and indexing hint on 1 March 2020. Whether marked links help the site they point to is covered in do nofollow links help SEO.
- Which links on your site need a rel value
- How to add rel values in HTML
- How to add them in WordPress
- Set it once: comments, forums and affiliate links
- Page-level nofollow vs link-level
- Why your internal links should stay followed
- Worked example: five links on one review page
- How to check the result
- If your site sells posts
- Frequently asked questions
- Sources
Which links on your site need a rel value
| Link on your site | Value | Basis in Google’s rules |
|---|---|---|
| Affiliate links, typed by hand or added by a plugin | sponsored | Google asks affiliate sites to use sponsored “regardless of whether these links were created manually or dynamically” (26 July 2021) |
| Ads, sponsored posts and paid mentions, including links given in return for a free product | sponsored (nofollow is still accepted) | The spam policies list “Exchanging goods or services for links” beside paying money for them |
| Links your visitors post in comments, forum threads, reviews and profiles | ugc, often with nofollow | Google’s link guide asks for ugc or nofollow wherever “users can insert links on your site” |
| Links back to you inside widgets or badges you hand out | nofollow, in the embed code you supply | The spam policies list keyword-rich widget links “distributed across various sites” and widely distributed template links |
| A page you must link to but won’t vouch for, such as a claim you dispute | nofollow | The value for links that fit neither of the other two |
| Sources you cite and trust | none | Ordinary links need no rel attribute |
| Your own pages | none | Google points to robots.txt, not nofollow, for links within your own site |

How to add rel values in HTML
<a href="https://shop.example/grinder?aff=123" rel="sponsored">Check the price</a>
<a href="https://reader-blog.example/" rel="ugc nofollow">Sam's blog</a>
<a href="https://claims.example/miracle-beans" rel="nofollow">the claim in question</a>
<a href="https://university.example/grind-study" target="_blank" rel="noopener">the study</a>
- One rel attribute per link. Put several values inside it, separated by spaces. Google accepts commas too.
- Type straight quotes. Curly quotes pasted from a word processor become part of the value, so the attribute no longer reads as nofollow.
- noopener is a browser setting. MDN’s reference says it opens the page “without granting the new browsing context access to the document that opened it”. Google’s qualifiers are only sponsored, ugc and nofollow, so noopener alone leaves a link followed.
How to add them in WordPress
| Where the link is | What to do | Checked in |
|---|---|---|
| Text in a paragraph, heading or other text block | Select the link, expand Advanced and turn on Mark as nofollow. Core has no sponsored or ugc switch: type those with Edit as HTML in the block’s More options menu, or use a plugin | WordPress.org: Link control; More options |
| Button block | Type the value into Link relation, in the block’s Advanced settings | WordPress.org: Buttons block |
| Navigation menu item | Use the item’s Rel attributes field | WordPress.org: Navigation block |
| Classic Editor | No checkbox in core: switch to the Code tab, called Text before WordPress 6.8, and type the attribute | WordPress source code, 6.7 and 6.8 |
SEO plugins
| Plugin | Options when you edit a link | Other settings |
|---|---|---|
| Yoast SEO | “Search engines should ignore this link” adds nofollow; “This is a sponsored link or advert” adds nofollow sponsored. Block editor only | Advanced tab: “Should search engines follow links on this page?” |
| All in One SEO | Block editor: toggles to add “nofollow” or “sponsored”. Classic Editor: checkboxes for nofollow, sponsored and UGC | Not covered here |
| Rank Math | “Set to nofollow” and “Set to sponsored”; there is no ugc option | General Settings > Links: NoFollow External Links, NoFollow Image File Links, NoFollow Domains, NoFollow Exclude Domains |
Leave Rank Math’s NoFollow External Links off unless every outbound link on your site is paid or untrusted: Google’s link guide advises against nofollowing every external link. If you do use it, list trusted sources under NoFollow Exclude Domains.
Set it once: comments, forums and affiliate links
- WordPress comments. Since version 5.3, WordPress has added
rel="nofollow ugc"to links inside comments when they’re saved; in current versions, links to your own site get ugc only. The link on a commenter’s name getsugc external nofollow, or just ugc if it points to your site. To follow links from trusted regulars, as Google allows, a developer can use thecomment_author_link_relfilter (WordPress 6.2 and later) on the name link. - bbPress. The WordPress forum plugin (version 2.6.22) adds nofollow and ugc to links to other sites in topics and replies when it displays them. Links to your own site get ugc only.
- Discourse. Its “add rel nofollow to user content” setting is on by default and gives links to other sites
rel="noopener nofollow ugc". Links posted by staff stay followed, and so do those from trust level 3 members unless you tick “tl3 links no follow”. A third setting, “exclude rel nofollow domains”, exempts domains you list. - Affiliate link plugins. Pretty Links, for example, has Default Nofollow and Default Sponsored settings under Pretty Links > Options > Links, each adding its value to every pretty link. Turn on sponsored at least: Google wants it on affiliate links however they’re created.
Page-level nofollow vs link-level
| rel on a link | Robots meta tag or header | |
|---|---|---|
| What it covers | That one link | Every link on the page, your menu included |
| Values | sponsored, ugc, nofollow | nofollow only |
| Where it goes | Inside the <a> tag | <meta name="robots" content="nofollow"> in the page’s head, or an X-Robots-Tag: nofollow HTTP header |
| In WordPress | The link settings above | Yoast or Rank Math: the Advanced tab of the post’s SEO settings |
Google’s robots specification defines the page-level rule as “Do not follow the links on this page”. Any rule that works in the meta tag also works as an X-Robots-Tag, which covers PDFs and other files without a head. The link values, Google says, work only in <a> elements, “except nofollow, which is also available as robots meta tag”, so there is no page-wide sponsored or ugc. Use the page-level tag only when you wouldn’t vouch for any link on the page, which is rare, since it also covers your own navigation.
Why your internal links should stay followed
- robots.txt stops crawling, noindex stops indexing. Google’s guide says: “For links within your own site, use the robots.txt disallow rule.” To keep a page out of results, Google says to leave it crawlable and add a noindex rule.
- A nofollowed internal link hides nothing. Google can still reach the page through your sitemap or another link.
- It works against your own pages. In 2009, Google’s Matt Cutts wrote: “In general, I would let PageRank flow freely within your site.”
So cart, login, account and filter URLs belong in robots.txt or behind noindex, not behind nofollowed links.
Worked example: five links on one review page
This is an example, not a real page. Say you publish a coffee grinder review that the grinder’s maker paid for, with an affiliate link to a retailer:
| Link | rel value | Why |
|---|---|---|
| “Check the price” at a retailer, through your affiliate account | sponsored | Affiliate links are paid links |
| The grinder maker’s site | sponsored | A paid placement; readers also need a visible sponsored post label |
| A reader’s link in the comments | nofollow ugc, added by WordPress | Nothing to do |
| The grind-size study you cite | none | A source you trust |
| Your own “compare grinders” page | none | An internal link |
Once the post is live, the console check below should show two sponsored links and the study with no value. After you approve the comment, it should also show the reader’s link with nofollow ugc. The internal link won’t be listed, since the check shows only other sites.
How to check the result
- Inspect one link. Open the published page, not the editor preview, right-click a link and choose Inspect. The highlighted
<a>tag shows its rel value. - List every outbound link. In Chrome, right-click the page, choose Inspect, open the Console tab, paste this line and press Enter:
console.table([...document.querySelectorAll('a[href]')].filter(a => a.hostname && a.hostname !== location.hostname).map(a => ({link: a.href, rel: a.rel || '(none)'})))
It prints a table of every link to another host with its rel value, and “(none)” for plain links. If Chrome blocks the paste, type allow pasting first, as its warning asks. Links to your www or non-www twin and other subdomains count as other hosts, so they appear too.
- Crawl the whole site after any site-wide change, with a crawler that exports outbound links and their rel values.
What the check found on our own blog. We ran the same rule, as a script, on the 35 blog posts we saved from markzone.org on 21 November 2026. Their article areas held 547 links to 59 other hosts (51 domains), 223 of them to Google’s developer and help pages. All 547 opened in a new tab with rel="noopener" (the 35 links to the author’s LinkedIn profile also carry “me”), and none carried nofollow, sponsored or ugc. The 632 links to our own pages had no rel value at all. For citations, that’s the right result.
If your site sells posts
Google’s rule for sellers is short. Its spam policies accept selling links for advertising and sponsorship as “a normal part of the economy of the web”. The one condition is that each paid link is qualified with rel="nofollow" or rel="sponsored". In a paid post, the value goes on every link the buyer paid for. Few sellers say they do it. In our catalog, 21,754 of the 22,073 publisher sites list followed links. Of the 7,430 that state a policy on sponsored labels, 240 (3%) say they mark guest posts sponsored (price study, 13 November 2026; these are the publishers’ own statements). On our side, catalog placements are followed unless a publisher’s rules say otherwise, and buyers can request a sponsored label on any order. Prices and terms from the seller’s side are in how to sell backlinks.
In our catalog, sites that use nofollow links or a sponsored tag are labeled, based on what each publisher tells us.
Frequently asked questions
Can I mark a whole post as sponsored at once?
No. Only nofollow has a page-level version, and it would also cover your own links. Tag each paid link, or switch on your affiliate plugin’s default setting.
Do links in unpaid guest posts need a rel value?
Google’s July 2021 post grouped them with sponsored posts. It warned of algorithmic and manual actions against sites that publish or acquire links “with excessive sponsored and guest posting without proper link tags”. If a guest author links to their own site, nofollow on that link is the cautious choice, and if any payment changed hands, use sponsored.
Does rel="noreferrer" affect SEO?
Not as a search hint, since it isn’t one of Google’s three values. It does change what the other site sees: MDN says it tells the browser “to omit the Referer header”, so the site you link to can’t see that the visit came from you.
Sources
- Google Search Central: Qualify your outbound links to Google (last updated 10 December 2025; values, multiple values, robots.txt for links within your own site, nofollow as robots meta tag)
- Google Search Central Blog: Evolving “nofollow”, new ways to identify the nature of links (10 September 2019; hints for ranking, crawling and indexing hint from 1 March 2020)
- Google Search Central Blog: A reminder on qualifying links and our link spam update (26 July 2021; affiliate links, sponsored and guest posts)
- Google Search Central: Spam policies for Google web search (last updated 23 November 2026; goods or services for links, widget links, paid links “qualified” with nofollow or sponsored)
- Google Search Central: SEO link best practices (last updated 10 December 2025; ugc or nofollow where users can insert links; not every external link)
- Google Search Central: Robots meta tag, data-nosnippet and X-Robots-Tag specifications (last updated 24 March 2026)
- Matt Cutts: PageRank sculpting (15 June 2009)
- WordPress.org Documentation: Link control (updated 6 September 2026), More options (17 September 2026), Buttons block (1 September 2026), Navigation block (8 October 2026)
- Make WordPress Core: WP 5.3 introduces new functions to add UGC attribute to links, and implements it to comments (Jb Audras, 3 October 2019)
- WordPress Developer Resources: wp_rel_ugc(), wp_rel_callback() and comment_author_link_rel (checked 24 November 2026)
- WordPress source code: class-wp-editor.php, 6.8 branch (“Code” tab) and 6.7 branch (“Text” tab) (checked 24 November 2026)
- bbPress 2.6.22 source: includes/core/filters.php and includes/common/formatting.php (checked 24 November 2026)
- Discourse source: site_settings.yml (defaults), server.en.yml (setting descriptions), pretty_text.rb and post.rb (checked 24 November 2026)
- Yoast: What link settings should I use? and Should search engines follow links on this page? (undated; checked 24 November 2026)
- All in One SEO: Adding nofollow, sponsored, UGC and title attributes to links (last updated 14 August 2026)
- Rank Math Knowledge Base: Link controls, General settings and Advanced tab (undated; checked 24 November 2026)
- Pretty Links: Default Link Settings (modified 10 July 2026)
- MDN Web Docs: rel=”noopener” (22 April 2026), rel=”noreferrer” (28 October 2026), HTMLAnchorElement.rel (10 April 2025) and console.table() (4 July 2025)
- Chrome for Developers: What are self-XSS attacks? (Wolfgang Beyer; “allow pasting”; checked 24 November 2026)
- Markzone: Guest post price study (catalog snapshot of 13 November 2026: link types and sponsored-label counts)
- Markzone blog, 35 posts as saved from markzone.org on 21 November 2026 (our own count of outbound links and rel values)
Want to know how many of your own backlinks are followed?
Request a free backlink audit: a person on our team checks your links by hand and emails you the results within 2 working days.

Muhammad Suleman is the founder of Markzone. He has done guest posting and link building since 2018 and has worked with hundreds of clients. Today his team handles 300–400 orders a month for brands and SEO agencies, with publisher sites in every major niche. He leads outreach, site checks and reporting, and writes about link building from his daily work with publishers and clients.
