April 8, 2014

How to Nofollow All External Links Automatically in Blogger

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.

 

About the author 

Imran Uddin


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}