How to add Nofollow tag to all external links automatically in Blogger

Saturday, 8 April 2017

How to add Nofollow tag to all external links automatically in Blogger

Posted by Samba Siva
Are you a selfish blogger like me, who won't love to pass link juice to other blogs ?

Wanna get rid of all the outbound link penalities ?

Wanna know " How to add Nofollow tag to all external links automatically in Blogger " ?


Outbound Linking is really helpful for your blog visitors. Because, it gives more information to the visitor.

For example, If you are writing about On page Seo and you written a keyword that Improve your traffic with low competition keywords and wanna show a proof that it really works. At the same time, a famous blogger written a blog post that proves your statement. So you will link to it and your blog visitors gets some more information.

But what, if a Low quality and spammy blog written the proof of the above statement ?

Will you link to that and get banned by an algorithm of Google ?

For this purpose, we will add a nofollow tag. In this blog post, We will tell you "How to add Nofollow tag to all external links automatically in Blogger and it's advantags " .



How to nofollow all external links in Blogger



1. Go to Blogger > Theme

2. Click on Edit HTML

3. Search for </head> and before the </head>, add the below code :

Code credits : http://www.mybloggerlab.com

<!--Remove this if you are
already using any
jQuery.js file-->
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js' type='text/javascript'></script>
<!--End-->

<script type="text/javascript">
jQuery(document).ready
(function () { jQuery('a
[href*="http://"]:not
([href*="http://www.mybloggerlab.com"])').attr('rel', 'nofollow');

jQuery('a
[href*="https://"]:not
([href*="https://www.mybloggerlab.com"])').attr("target", "_blank"); });
</script>

Change www.mybloggerlab.com to your domain URL.

4. Click on Save.





So, What happened ?



This code is based on Jquery.

The code informs that nofollow all external links in your blog and open them in a new window ( Because of the Target=" Blank " code )

But, this code doesn't add a nofollow tag to your internal links. Because this code contain a code ( Don't add, nofollow tag to internal links of your blog ).


Advantages of Nofollow



With a nofollow tag, we can avoid passing link juice to other blogs. This will improve rankings of your blog.


Avoid Penalities : Google never loves spammy blogs. At the same time, Google hate blogs that links to spammy blogs. For providing some more information to visitors, We should sometimes link to spammy blogs. With a nofollow tag, we can avoid passing link juice to the spammy blogs. So, there is no chance of getting banned by search engines like Google.


Decrease Bounce rate : As we added a Target = " Blank " tag in our code, all the links will be opened in New tab. And the bounce rate of our blog will be reduced resulting in high CTR and CPC.


Conclusion



In this way, you can add Nofollow tag to all external links automatically in Blogger and can get higher rankings in Google. For some more updates of Blogger and some more Blogger plugins, you should subscribe for us and get latest posts in your inbox.