How to Nofollow All External Links Automatically in Blogger

3
118

While writing a new post, it is very essential to add a Nofollow attribution to the external link and open it in a new window. This is to be made by default as one cannot always do the same work again and again. So here is the simple method which makes all your links to Nofollow by default.

Why to Nofollow external links?

Nofollow is a value which is used to instruct some search engines that a hyperlink should not influence the external links targeted ranking in Search engine results. It does not allow to pass the PageRank juice to any other external link specified. In simple words, giving a Nofollow link is like giving a text matter with a link.

So, the script given will automatically make the links in your website as Nofollow by default.

How to Nofollow All External Links Automatically in Blogger?

The first thing you need to do is to add and install a jQuery plugin into your Blogger Template. Go to Blogger.com >> Template >> Edit HTML >> Proceed, search for the ending </head> tag and just above it paste the following JavaScript coding.

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js' type='text/javascript'></script>
<script type="text/javascript">
jQuery(document).ready(function () {
jQuery('a[href*="http://"]:not([href*="https://www.alltechbuzz.net"])').attr('rel', 'nofollow');
jQuery('a[href*="https://"]:not([href*="https://www.alltechbuzz.net"])').attr("target", "_blank");
    });
</script>

After adding the above code in your template. you just replace the www.alltechbuzz.net  with your website URL.

 

3
Leave a Reply

avatar
3 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
3 Comment authors
Cena ZuhauTechie TipsMahesh Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Mahesh
Guest

Its worthy article and helpful thank you

Techie Tips
Guest

How to add Dofollow All External Links Automatically in Blogger

Cena Zuhau
Guest
Cena Zuhau

I’ve tried using this code snippet. But I don’t see… Read more »