As a blogger, there's no way around knowing the difference between nofollow and dofollow.
At the latest when you receive or send your first collaboration request, and anyway once you get into SEO (which you should!).
How do you actually mark links as nofollow or dofollow? And why, anyway? What mistakes can you make? And what consequences can it actually have to mark links incorrectly? I'll answer all of these questions in this (detailed!) guide and hope to clear up a few misconceptions along the way.
- Nofollow signals to search engines that no PageRank is passed on. You use it for advertising, spam, and questionable sources.
- Mark links directly with rel="nofollow" or control entire pages via the meta tag; tools like Ultimate nofollow help you with this.
- Never set internal links to nofollow and stick to Google's guidelines to avoid manual actions and ranking losses.
1. What is nofollow?
Normally, Google sees every link to a web page as a recommendation for the linked page. The more recommendations a web page (and its domain) has and the more trustworthy these recommendations are, the more weight Google gives that page in the search results.
With nofollow, you can tell Google not to follow a link. That link then doesn't count toward the Google ranking of the linked page, so in theory it can neither improve nor hurt it. The reason is that neither anchor text nor PageRank is passed through these links.
2. How do I mark links as nofollow?
At page level, you use a so-called meta tag that goes in the <head> section of your blog (where the meta title and meta description also live). It makes all links on a page nofollow. In practice, though, that's rarely useful.
<meta name="robots" content="nofollow" />Usually you only set individual links to nofollow. To do that, you add the attribute rel="nofollow" to the link (marked in red).
<a href="http://www.abc.de/hallo-welt/" rel="nofollow">Hallo Welt!</a>It doesn't matter where in the link you put the attribute. It can come before the href, after it or between other attributes, such as class or style.
<a rel="nofollow" class="button" href="http://www.abc.de/hallo-welt/">Hallo-Welt!</a>I prefer to edit all links in the text editor in WordPress. If you're not that comfortable with it yet, I recommend the plugin Ultimate nofollow, which adds a small checkbox to the visual editor in WordPress.
The one downside:
Unfortunately, the plugin doesn't work with Gutenberg, only with the Classic Editor.
3. What is dofollow?
Dofollow links (or simply follow links) are all perfectly ordinary links that don't have a rel="nofollow" attribute.
Google follows these links. That means the linked page may be added to the Google index, and the link counts toward how the page is rated in the Google ranking.
rel="follow" or rel="dofollow".4. When should I set links to nofollow?
4.1 For untrustworthy websites
If you link to an untrustworthy website yourself, it can hurt your own Google ranking. To prevent that, you can give the link a rel="nofollow" attribute and devalue it that way.
Untrustworthy websites that you should definitely set to nofollow include, for example, websites that …
- have no or very little content of their own (“thin content”)
- consist of copied or automatically generated content (“duplicate content”)
- are known for copyright infringement
- only exist to get users to click affiliate links (for example affiliate niche sites)
- spread malware (spyware, viruses, and so on)
- have large numbers of bought or spammy links
- deliberately deceive users or search engines (for example through cloaking, doorway pages, sneaky redirects or hidden text or links)
- only want to take users' money (casino sites, get-rich-quick websites, and so on)
Of course, it's always better for your users if you don't link to a shady website in the first place and check your outgoing links carefully instead of setting them to nofollow (because that doesn't stop users from clicking the link, after all).
In some cases, checking every outgoing link simply takes too much time. In forum posts, forum profiles, and signatures, or in comments on blogs and guestbooks, for example, it therefore makes sense to set all links to nofollow across the board. In part, this also keeps spammers from placing a link somewhere, because rel="nofollow" makes it worthless for the Google ranking.
4.2 Paid links or advertising
Links are an important factor in how Google calculates its ranking. And despite various algorithm changes over the years, buying links can still strongly influence the Google ranking of a web page.
That's why Google explicitly requires in its webmaster guidelines that bought links and links that are part of an ad get the rel="nofollow" attribute, so these links don't distort the search results. This applies, for example, to:
- Sponsored posts
- Affiliate links
- Links in text ads or advertising banners
- Buying or renting links
4.3 Controlling Googlebot
With nofollow, you can deliberately steer Google's web crawler (also called Googlebot) and point it to the web pages that you actually want in the Google index.
This includes, for example, links to the registration page, the admin area, or similar. For completely normal blogs, though, that isn't really relevant. It matters more for large online portals with tens of thousands of web pages or large forums that have to pay closer attention to their crawl budget.
5. The most common mistakes when using nofollow and their consequences
Mistake #1: You don't mark advertising links as nofollow
First of all: I keep hearing that the law requires you to mark advertising links as nofollow and that not doing so can get you a cease-and-desist letter (Abmahnung). That's nonsense, though.
Selling a dofollow link does violate Google's webmaster guidelines. But Google's guidelines are not legally relevant. They're more like house rules. Under Germany's Digital Services Act (DDG, formerly TMG) and the Interstate Media Treaty (MStV, formerly RStV), you're only required to label advertising links as advertising. There is no obligation to set links to nofollow.
Even so, not marking advertising links as nofollow can have consequences for your visibility on Google.
I don't think it's too bad if you forget to mark the odd affiliate link or a link in an advertising banner as nofollow. Or if a link in a sponsored post is dofollow here and there. Google doesn't care much about that and probably won't take action against it even if it finds out (for example through a spam report).
What you should absolutely avoid, however, is selling dofollow links from your own website on a large scale. In that case, you may face manual actions from Google that remove your entire website or parts of it from the Google index (fixable by removing the links and filing a reconsideration request, but very annoying all the same).
Mistake #2: You set internal links to nofollow
One of the biggest mistakes you can make with nofollow is setting internal links to nofollow. Internal linking is an important ranking factor, and using nofollow takes it out of the equation completely.
Using nofollow for internal links makes PageRank (the strength of the recommendations other sites give you by linking to your website) spread less well and makes anchor texts irrelevant (links with a keyword help you rank for that keyword).
It can even happen that internally linked blog posts don't get added to the Google index, especially if you haven't submitted a sitemap to Google.
Often this doesn't happen on purpose. Internal links set to nofollow are usually the result of badly coded themes or plugins.
WordPress itself also sets some internal links to nofollow for no good reason. For example, all internal links in comments are set to nofollow. But only if the link is inserted automatically (URLs are turned into links automatically). If you insert the link manually, it isn't set to nofollow automatically.
Mistake #3: You set all external links to nofollow
I see more and more often that bloggers (much like forum operators) set all external links to nofollow (for example with plugins like No Follow All External Links). Some workshops and some specialist literature even recommend this practice. I would advise against it, though.
The main argument of its supporters is that you can't keep checking all your outgoing links, and that a hack or a change of domain owner could turn a trustworthy website into a gambling or adult site or some malware-spreading spam machine.
Sure, that can happen, but it's actually fairly rare. And even if it does: linking to a shady site by accident here and there will hardly hurt your ranking.
For a tiny bit more safety, you accept that you devalue the links to web pages you honestly recommend to your readers, because they offer high-quality content for your users and actually deserve a better rating in the Google ranking.
On the one hand, this can make other bloggers less willing to link to you or to write a guest post for you. On the other hand, it could send Google the following message:
- All your outgoing links are advertising links or bought links.
- You don't check any of your outgoing links (and so maybe not their content quality either).
- Your content could be dismissed as “user-generated content,” which usually performs worse in the search results than editorial content.
To stop WordPress from setting all links in comments (including your own) to nofollow, I recommend the plugin DoFollow Case by Case, which lets you set the links of selected commenters to dofollow.
Mistake #4: You set external links in blog posts sometimes to dofollow and sometimes to nofollow
Another practice I see every now and then is setting linked web pages in blog posts sometimes to dofollow and sometimes to nofollow, and choosing based on how trustworthy they seem. Or, with several links to one website, leaving only one of them dofollow instead of all of them (for example only the homepage, but not a blog post).
I doubt that this makes much sense, though. It does reduce the (small) risk of linking to an untrustworthy website a tiny bit, without giving up honest recommendations entirely.
That may look like an acceptable middle ground, but it's in the interest of neither users nor the reciprocity between bloggers or webmasters.
If you don't trust a website completely, don't link to it. And if you do trust a website, you shouldn't have a problem linking to it several times. Period.
Mistake #5: You use nofollow links to keep a page out of the index
I sometimes see standard pages like the contact page, the Impressum (the legal notice German websites must carry) or the privacy policy set to nofollow to prevent them from being indexed. That's unnecessary, though.
The best way to do that is the robots meta tag noindex (which you can set, for example, in the advanced mode of Yoast SEO).
You'll find more about mistakes, challenges, and deadly sins around SEO here: WordPress SEO: 12 deadly sins that cost you thousands of readers (and how to fix them).
6. FAQ
Here I've put together the answers to the most common questions about nofollow links:






