How To Make All External Links NoFollow Automatically In Blogger

One of the useful way for best Search Engine optimization for your blog is making all external links nofollow. NoFollow tag helps your blog to have a stable ranking in search engines. Now a days after Google Panda Update there is a lot of importance of no-follow tag in links because it is the final hope to secure your PageRanks juice. Actually, Search Engine robots come on your blog and they 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.


How to Make All External Links nofollow Automatically


  • Go to Blogger Dashboard 
  • Click on DropDown Menu and select Template
  • Backup your Template before making any changes to your blog
  • Now Click on Edit HTML --> Proceed --> Expand Widget Templates
  • Press Ctrl + F and search the code shown below


</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>

  • Dont add the line shown in red color if your template already have that jquery plugin
  • Now save your template

Like it? Share it.

2 comments

19 August 2012 at 00:14

is this nofollow link is only for Google bots or we can also notice that these external link are nofollow or not...

19 August 2012 at 02:20 Author

@Sushil KumarOnly for google bots

Click to Add a New Comment

  • If you're asking a question click on Subscribe By Email link, on the comment form, to be notified of replies.
  • Do NOT add links to the body of your comment as they will not be published.
  • Only the comments posted in ENGLISH will be approved.
  • If you have a problem check first the comments , maybe you will find the solution there.