Wednesday, June 6, 2012

How To Make All External Links NoFollow Automatically In Blogger

Author: Gagan Masoun
How To Make All External Links NoFollow Automatically In Blogger
Every blogger want powerful SEO for their blogs. You can make your blog Google lover with just making. external links nofollow. NoFollow tag helps your blog to make high ranking in search engines like Google, Yahoo, Bing, MSN etc. After Google Panda Update you will understand the importance of no-follow tag in external links because it is the final hope to secure your PageRanks juice.

Here I want to clear that, Search Engine robots come on your blog or website and they will visit all links placed in your blog post. Its an intelligent to keep those robots on your blog and let them index only your blog posts. This tutorial will guide you "How To Make All External Links NoFollow Automatically In Blogger."

How To Make All External Links NoFollow Automatically In Blogger

  • Go To Blogger Dashboard --> Template --> Edit HTML
  • Backup Your Template Before Making Any Changes
  • Now  Expand Widget Templates
  • Press Ctrl + F and Search The Code Shown Below
  • Now Find the code shown below using [ctrl+F]
</head>
  • Now Paste The Code Shown Below Just above/Before It 
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'/>
<script type='text/javascript'>
<![CDATA[
jQuery('a').each(function(){var a=jQuery(this).attr('href');if(typeof a!='undefined'&&a!=""&&(a.indexOf('http://')!=-1||a.indexOf('https://')!=-1)&&a.indexOf(window.location.hostname)==-1){jQuery(this).attr("rel","nofollow")}});
]]>
</script>
  • Note - Don't Add The Line Shown In Red Color If Your Template Already Have That Jquery Plugin
  • Now Save Your Blogger Template & Enjoy :)

4 comments:

  1. then why did not you use this code ??
    is it for human or for bot

    ReplyDelete
    Replies
    1. This is for bot, If I will feel the need of it then I will use it.

      Delete
  2. I tried this code on my Blog, It made my own links nofollow. Any Solution for that?

    ReplyDelete
    Replies
    1. Where you checked the links?? manually or with any tool?

      Delete