Design Converter
Education
Last updated on Feb 13, 2025
•5 mins read
Last updated on Feb 13, 2025
•5 mins read
In the vast ecosystem of the web, links are critical to shaping search engine strategies and determining how pages rank and connect. One important HTML attribute you should be familiar with is the rel="nofollow".
Understanding how and when to use the rel="nofollow"
attribute is essential for webmasters, SEOs, and content creators to manage external links, maintain search ranking compliance, and control the flow of link equity.
This blog explains how rel="nofollow"
affects search engines and offers practical strategies for using it effectively.
As of 2019, Google treats the rel="nofollow"
attribute as a hint rather than a strict directive, meaning it may still decide to crawl and index the link but won't pass link equity in most cases. This means that links marked with the nofollow attribute will not influence the ranking of the linked page. It’s a useful tool for managing paid links, forum posts, and any external links you don't fully endorse or want to be associated with from a ranking perspective.
Example of a nofollow link attribute:
1<a href="https://example.com" rel="nofollow">Example Site</a>
In this snippet, the rel="nofollow"
tells search engines not to follow or pass authority to the linked page.
There are several scenarios where applying the nofollow attribute is beneficial:
• Paid links: Google also recommends using the rel="sponsored" attribute for paid links, which is more specific than rel="nofollow".
• Untrusted sources: If you're linking to other sites you don’t fully trust, use nofollow links.
• User-generated content: This is especially critical for high-traffic forums and comment sections where spam links can harm your site’s reputation and SEO.
• Affiliate links: Many SEOs prefer to add the nofollow attribute to affiliate links to avoid passing authority.
When search engine spiders encounter a nofollow attribute, they will not follow that link. This means that the link equity is not transferred to the linked page. While nofollowed links don’t directly impact the search ranking of the linked page, they serve a critical role in managing how your site interacts with other sites.
By using nofollow, you can influence which external links may pass authority, though it is no longer an absolute control due to Google’s updated interpretation.
While nofollow affects how search engines treat links, it has no impact on user experience. Visitors can still click on nofollow links and navigate to the linked page. Use it strategically to maintain the credibility of your site.
For paid or sponsored links, use rel="sponsored" or, if preferred, rel="nofollow"
to avoid passing link equity.
1<a href="https://sponsoredlink.com" rel="nofollow">Sponsored Link</a>
If you need to link to other sites that may have questionable content or poor SEO practices, the nofollow attribute is a good safeguard.
Control outbound links on your site by applying nofollow to those that might negatively affect your SEO.
Not all internal links need to be followed. Strategic use of nofollow on certain navigation links can help focus link equity where it matters most.
Here’s a snippet of dynamically applying the nofollow tag in WordPress using PHP:
1function add_nofollow_to_links($content) { 2 return preg_replace_callback('/<a[^>]+>/', function($matches) { 3 if (strpos($matches[0], 'rel="nofollow"') === false) { 4 return str_replace('<a', '<a rel="nofollow"', $matches[0]); 5 } 6 return $matches[0]; 7 }, $content); 8} 9add_filter('the_content', 'add_nofollow_to_links'); 10
This code ensures that all external links automatically receive the nofollow attribute.
No. Proper use of nofollow can actually improve the overall SEO health of your site by helping you control which external links pass link equity. Improper use, such as excessive nofollow on internal links, can hinder proper link flow within your site, reducing crawl efficiency.
Nofollow links can still bring significant referral traffic, build brand awareness, and contribute to a natural backlink profile.
Audit Your Site Regularly: Identify which external links need the nofollow attribute.
Balance Follow Links and nofollow links: For internal links, use nofollow sparingly—primarily for pages you don’t want indexed, such as login or admin pages.
Monitor Link Target Behavior: Ensure that nofollowed links lead to relevant content.
Use Anchor Text Thoughtfully: The anchor text should still provide context to users, even for nofollow links.
Incorporating rel="nofollow"
into your link strategy allows you to manage external links effectively while maintaining control over your site’s SEO health. By understanding the role of the nofollow attribute, you can maintain control over how link equity flows, comply with Google’s guidelines, and reduce risks from external links to low-quality pages. Applying these strategies ensures that your site remains authoritative, trustworthy, and well-optimized for search engines.
Tired of manually designing screens, coding on weekends, and technical debt? Let DhiWise handle it for you!
You can build an e-commerce store, healthcare app, portfolio, blogging website, social media or admin panel right away. Use our library of 40+ pre-built free templates to create your first application using DhiWise.