What are dofollow backlinks?
A dofollow backlink is a link that leads from a website to your own website and is “followed” by search engines. This means that search engines follow the link and can use it for your website’s ranking. Dofollow links are the “standard links” you normally see on a website, and they are an important factor when search engines assess your website.
What are nofollow backlinks?
A nofollow backlink is also a link that leads from a website to your own website, but search engines generally do not “follow” it. This means that the link usually does not contribute to search engines’ assessment of your website. However, Google treats “nofollow” only as a hint and can still take such links into account in individual cases.
Nofollow links use the rel="nofollow" attribute in the hyperlink. Websites normally use it for references they want to “distance” themselves from, or to mark advertising links. Forums also use it so that links in spam comments pass on no value.
Nofollow does not reliably prevent the target page from being crawled. According to Google, it can be found by other means, such as sitemaps or links from other websites. To stop your own pages being crawled, use robots.txt. To keep a page out of the index, allow crawling and use noindex in the meta robots tag.
How the attributes look in the source code
An ordinary link has no special attribute. “Dofollow” is therefore not a value or tag of its own in HTML. It is the usual term for links without restrictions. You do not need a rel="dofollow".
<a href="https://www.example.com/">Example</a>
<a href="https://www.example.com/" rel="nofollow">Example</a>
<a href="https://www.example.com/" rel="sponsored">Advert</a>
<a href="https://www.example.com/" rel="ugc">Link from a comment</a>
You can see whether a link has such an attribute in your browser by right-clicking on the link and choosing “Inspect”. This command lists all links on a page that have a rel attribute in the console of the developer tools:
console.table([...document.querySelectorAll("a[rel]")].map(a => ({ link: a.href, rel: a.rel })));
For whole websites and for backlinks, you need a crawler or backlink tool that shows the attribute. According to Google, the Links report in Search Console does not indicate whether a link is nofollow.
Where nofollow comes from
Nofollow was created in 2005 to combat comment spam. Since 2019, Google has treated the value as a hint.
| Year | What changed |
|---|---|
| 2005 | Google introduces rel="nofollow" to combat comment spam. |
| 2009 | Matt Cutts of Google explains that internal nofollow links do not redirect PageRank to other links. |
| 2019 | Google adds sponsored and ugc and treats all three values as hints for ranking. |
| 2020 | Since March, the values have also been hints for crawling and indexing. |
sponsored and ugc in brief
Since 2019, there have been two further values alongside nofollow. Google recommends them in “Qualify your outbound links to Google” as follows:
| Value | What it is for |
|---|---|
rel="sponsored" |
Paid links and adverts. According to Google’s July 2021 blog post, explicitly including affiliate links. |
rel="ugc" |
Links in user-generated content, such as comments and forums. |
rel="nofollow" |
When neither of the other values applies and you do not want Google to associate your website with the linked page. |
The values can be combined, for example rel="nofollow sponsored". When a link must be qualified and what counts as link spam is covered in our entry on backlinks.
Differences between dofollow and nofollow links
The biggest difference between dofollow and nofollow links is that search engines follow dofollow links and use them to assess your website, whereas nofollow links generally do not contribute to this. When it comes to improving your position in the search results through SEO, dofollow links therefore count most.
What both types have in common is that they can bring visitors to your website. A person who reaches your website via a nofollow link can still become a valuable, returning visitor.
Dofollow vs. nofollow at a glance:
| Feature | Dofollow link | Nofollow link |
|---|---|---|
| HTML | No special rel value | rel="nofollow" |
| Crawling | Search engines can follow the link | Generally not followed |
| Ranking | Can contribute to the assessment | Generally does not contribute, Google can treat it as a hint |
| Visits | Can bring visits | Can bring visits |
| Typical use | Editorial links | Links a website does not want to vouch for |
Nofollow in a link and nofollow in meta robots
The rel="nofollow" attribute applies to a single link, and the nofollow rule in the meta robots data applies to all links on a page.
| Feature | nofollow in a link | nofollow in meta robots |
|---|---|---|
| Applies to | One link | All links on the page |
| Located in | The link itself | The head section or the X-Robots-Tag HTTP header |
| Effect on Google | A hint, the link is generally not followed | Google should not follow the links on the page |
You do not need a tag for “dofollow” or “follow” here either. According to Google, all is the default value, and follow is not among the valid rules. On a page blocked by robots.txt, Google does not read these rules at all.
How to use dofollow and nofollow links
Dofollow links are usually the primary goal of a link building strategy, because search engines can use them to assess your website. Nofollow links can also have a certain value, especially for bringing traffic to your website and making your brand better known. Apart from that, nofollow links are part of every organic link profile.
On your own website, you use the values for outgoing links. Normal editorial links need no attribute. Mark paid links with sponsored, links in comments with ugc and other links you do not want to vouch for with nofollow.
Decision table: which value for which link?
| Link | Recommendation |
|---|---|
| Editorial recommendation | No attribute |
| Advert, paid placement, advertorial | sponsored |
| Affiliate link | sponsored |
| Comment, forum post | ugc |
| Source you do not want to vouch for | nofollow |
| Press release or guest post | Avoid optimised anchor text, or mark with nofollow |
| Internal link | No attribute |
If you are looking to buy dofollow backlinks, be aware that buying links for ranking counts as link spam under Google’s spam policies. Paid links are acceptable when they are marked with nofollow or sponsored. Our entry on backlinks has more on this.
Common mistakes
- Confusing noopener with nofollow:
rel="noopener"protects the original page when a link opens in a new tab. It has nothing to do with how the link is assessed. - Setting internal links to nofollow: this does not redirect link equity to other pages. A clear internal linking structure matters more.
- Using nofollow to prevent indexing: the target page can still end up in the index. That is what noindex is for.
