Link Attributes

How to Put Nofollow on Links: HTML, WordPress, and Site Builders

By BacklinkPrice Team · Nov 28, 2026 · 9 min read
Cover for How to Put Nofollow on Links: a code icon on a purple background showing the nofollow HTML syntax

Putting nofollow on a link means adding rel="nofollow" to its HTML. WordPress and the main site builders each have their own route, and a quick browser check confirms the tag is there.

Quick answer: To put nofollow on a link, add rel="nofollow" inside the link's anchor tag, next to the href. In WordPress, add the value in the link settings of the block editor, and on Shopify, Wix, Webflow, and Squarespace, use each platform's own link settings. Check your work by inspecting the link in your browser and looking for rel="nofollow" in the HTML.

TL;DR: The syntax is one small addition to the anchor tag, and every major platform has a route to add it without touching code. The hard part is not the syntax. It is deciding which links deserve the attribute and which should stay followed.

Key takeaways

  • The HTML is simple: add rel="nofollow" to the anchor tag, next to the href.
  • You can combine values, such as rel="ugc nofollow", and Google accepts space- or comma-separated lists.
  • WordPress adds rel="ugc external nofollow" to comment author links by default.
  • Use sponsored for paid links and ugc for user content, and keep nofollow for links you simply do not endorse.
  • How to add nofollow links in WordPress is the step-by-step guide for the most common platform.

The HTML: one attribute, three values

Every link on the web is an anchor tag, and the nofollow attribute is a small addition to it. A plain link looks like this: an opening tag with an href, anchor text, and a closing tag. To make it nofollow, add rel="nofollow" inside the opening tag, next to the href. Nothing else changes, and readers see no difference at all.

Google's guide on qualifying outbound links gives the exact form. For regular links that you expect Google to fetch and parse without any qualifications, you do not need to add a rel attribute at all, according to Google Search Central. The attribute exists only for links where you want to describe the relationship.

Three values cover the cases. Rel="sponsored" marks links that are advertisements or paid placements. Rel="ugc" marks links inside user-generated content such as comments and forum posts. Rel="nofollow" is for the remaining cases, where other values do not apply and you would rather Google not associate your site with the linked page, according to Google Search Central.

You can combine values in one attribute. Google says you may specify multiple rel values as a space- or comma-separated list, according to the same guide. Rel="ugc nofollow" is a valid combination for a user-posted link you also do not endorse, and rel="nofollow ugc" means the same thing. The order of the values does not matter.

One detail catches people out: these attributes only work inside anchor elements that Google can crawl, except nofollow, which is also available as a robots meta tag. A nofollow in a meta tag applies to the whole page rather than to one link, so use the anchor version when you want to mark a single link.

Adding nofollow in WordPress

WordPress is where most people meet this question, and it has two routes.

The first is the block editor. Select the text, open the link settings, and add the rel value in the field provided for it. The exact label of that field has changed across WordPress versions, so if you cannot find it, the platform's own guide for your version is the reliable reference. How to add nofollow links in WordPress walks through the current route in detail.

The second route is the HTML editor. Switch a block to edit as HTML, find the anchor tag, and type rel="nofollow" next to the href. This route works for any link, including links inside widgets, menus, and custom HTML blocks where the visual editor offers no rel field. It is also the route to use when you need a combination such as rel="sponsored" on an affiliate link.

WordPress already handles one case for you. Comment author links get rel="ugc external nofollow" by default, so links readers leave in comments are marked without any action from you. That default exists because comment links are user-generated content, and the platform marks them as such from the start.

Adding nofollow on Shopify, Wix, Webflow, and Squarespace

The hosted builders each have their own route, and none of them requires editing theme files for a single link. On Shopify, the rich text editor lets you add a link and edit its HTML, and the route is covered in detail in how to add nofollow links in Shopify.

On Wix, the link settings panel includes a rel option for links you add through the editor, as covered in how to add nofollow links in Wix.

Webflow exposes link settings in its designer panel, where you can add rel values to any link element, as covered in how to add nofollow links in Webflow.

Squarespace has a similar route through its link editor, covered in how to add nofollow links in Squarespace. The pattern is the same on all four: find the link, open its settings, and add the rel value there.

The practical advice is the same on every platform. Add nofollow link by link, and only where the relationship calls for it. A site-wide rule that nofollows every outbound link is easy to set in some builders, and it is almost always a mistake. It tells Google you endorse nothing you link to, and it gives up ranking credit on links that deserved to pass it.

PlatformWhere to add itCode neededCombination values
Plain HTMLAnchor tag, next to hrefYes, one attributeYes, space- or comma-separated
WordPressBlock editor link settings or HTMLNo, usuallyYes, in the rel field
ShopifyRich text editor link HTMLSometimesYes, in the HTML
WixLink settings panelNoYes, in the settings
WebflowDesigner link settingsNoYes, in the settings
SquarespaceLink editorNoYes, in the editor

According to Google Search Central, you may specify multiple rel values as a space- or comma-separated list, and links marked with these rel attributes will generally not be followed. The guide also notes that nofollow is the one value available as a robots meta tag as well as in an anchor tag. Source: Google Search Central, Qualify your outbound links to Google.

How to check that nofollow is really there

Adding the attribute is only half the job. The other half is confirming it survived publishing, because editors, plugins, and builders can strip or rewrite attributes without warning.

The fastest check is your browser. Right-click the link, choose Inspect, and read the anchor tag in the panel that opens.

Look for rel="nofollow" next to the href. If it is there, the attribute is live. If it is not, something between your edit and the published page removed it, and you need to find what.

A second check is viewing the page source. Open the source, search for the link's URL, and read the tag around it. This shows the HTML Google receives, which is the version that matters. Browser extensions can help here too: several free extensions highlight nofollow links on a page, and nofollow extension overview covers the tools that do this job.

Check a sample, not every link. Pick one link of each type: one paid link, one user-content link, and one link you marked nofollow by hand. If all three carry the right attribute, your process works. If one does not, fix the process before adding more links.

Mistakes to avoid when adding nofollow

The most common mistake is using nofollow where sponsored belongs. A paid link with rel="nofollow" is compliant under Google's spam policies, which accept either value, but sponsored describes the relationship more clearly. Google's guidance says to mark links that are advertisements or paid placements with the sponsored value, according to Google Search Central. Use sponsored for anything tied to payment, and keep nofollow for links you simply do not endorse.

The second mistake is using nofollow to control indexing. Nofollow was never the right tool for keeping a page out of Google's index, and since March 1, 2020 it is not even a reliable one, because Google now treats it as a hint for crawling too.

To keep a page out of the index, allow crawling and use a noindex robots rule. To stop Google fetching a link to a page on your own site, use a robots.txt disallow rule, according to Google Search Central.

The third mistake is nofollowing internal links to steer PageRank. Google changed the math in 2008 so nofollowed links still count when credit is divided, and Matt Cutts announced the change in June 2009. The credit assigned to a nofollowed internal link evaporates instead of moving to your other pages, so the tactic costs ranking credit rather than saving it.

The fourth mistake is forgetting to check after a redesign or a plugin change. A new theme, a new editor, or a migration can strip rel attributes silently. A quick inspection after any big change catches the problem before it spreads across the site.

Frequently Asked Questions

Add rel="nofollow" inside the opening anchor tag, next to the href. The full tag reads as an anchor with the href and the rel value together, followed by the anchor text and the closing tag. Nothing else in the page needs to change.

Yes. Google accepts multiple rel values as a space- or comma-separated list, so rel="sponsored nofollow" is valid. In practice, sponsored alone is enough for a paid link, and adding nofollow to it changes nothing, so most publishers use one value.

How do I add nofollow in WordPress without a plugin?

Use the block editor's link settings, which include a field for the rel value, or switch the block to edit as HTML and add rel="nofollow" next to the href. Comment author links already carry rel="ugc external nofollow" by default, so those need no action.

Right-click the link in your browser, choose Inspect, and read the anchor tag for rel="nofollow". Browser extensions can also highlight nofollow links on a page, which is faster when you need to check many links at once.

No. The attribute is invisible to readers. The link looks the same, works the same when clicked, and sends the same visitors. Only search engines read the attribute, and since 2019 they treat it as a hint rather than a hard rule.

Expert verdict

Best for: site owners who need to mark paid links, user content, or untrusted links correctly, and want a process they can repeat on any platform.

Not for: anyone looking for a one-click fix, because the syntax is easy but the judgment about which links deserve the attribute is the real work.

Pros: the syntax is a single attribute; every major platform has a route to add it; a browser inspection confirms the result in seconds.

Cons: editors and plugins can strip the attribute silently; the wrong value on a paid link can draw a manual action; overuse weakens a site's outbound endorsement signal.

Bottom line

Add rel="nofollow" to the anchor tag for links you do not endorse, rel="sponsored" for paid links, and rel="ugc" for user content. Use your platform's link settings where they exist, check the result with Inspect, and re-check after any redesign or plugin change.

Sources

BacklinkPrice Team
Written by
BacklinkPrice Team
Link building and backlink pricing research

The BacklinkPrice Team researches backlink prices, publisher sites and link building tools. We check prices and plans against each provider's own pages and date them, so you know how current the numbers are.

More from BacklinkPrice Team

Related guides