New Bloggers face a common problem and that is how to make all links in comment section as “no follow” to get rid of spam links for the better SEO.
We have easy options in WordPress blogs since we can easily install plugins. but when we talk about Blogger’s blog we need to do it manually.
What are the No follow and Do follow Links
A Do follow and No follow both the links look like same but the only difference is a search engine BOT considers do follow links as link where as no follow links are considered as Text. We use rel=”nofollow” tag to make a link no follow. The example is :
<a href=”https://sanjaychoubey.com/” rel=”nofollow”>A1 Blogger Seo</a>
Benefit to make External links No follow :
If you own a blog u notice People often submit links in the comment sections along with there comments. By default these links are no follow that means you are giving a free backlink to that commentator’s blog/website. Giving a large number of backlinks on other websites may harm your blog’s performance since it is not good from SEO point of view. Many experts say it is mandatory to make all links in comment section as no follow.
Steps to make all comment links in Blogger as No Follow :
1. Just go to Lay out in Blog Dashboard.
2.Click on add a gadget named HTML/JAVASCRIPT
3. Leave title empty and put the following code in content:
<script type=’text/javascript’>
<![CDATA[
jQuery(‘a’).each(function() {
var href = jQuery(this).attr(‘href’);
if (typeof href != ‘undefined’ && href != “” && (href.indexOf(‘http://’) != -1 ||
href.indexOf(‘https://’) != -1) && href.indexOf(window.location.hostname) == -1) {
jQuery(this).attr(“rel”, “nofollow”);
}
});
]]>
</script>
4. You have done!!!!! save the widget and click on save arrangement….ENJOY*
Amit Kumar says
WOW IT REALLY A NICE CODING FOR NO FOLLOW FEATURE. I LIKE IT. IT IS USEFUL FOR BLOGGER.
sanjay choubey says
Thanks broooo for your valuable comment. hope u have applied this code on your blog.