How to Nofollow All External Links Automatically in Blogger

While writing a post, it is extremely straightforward to add a nofollow attribution to the external link and open it in a new window.  Adding nofollow attributions manually to your all external links is indeed a mind-numbing task, but that might not be preferred all the time. Sometime you might have to make a link dofollow, but you can’t because your manual attribution would override your settings. We have a modest solution to add nofollow attribution automatically. In this article, we will show you How to nofollow All External Links in Blogger Through jQuery Plugin.

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

<!--Remove this if you are already using any jQuery.js file-->
<script src='' type='text/javascript'></script>

<script type="text/javascript">
jQuery(document).ready(function () {

jQuery('a[href*="http://"]:not([href*=""])').attr('rel', 'nofollow');

jQuery('a[href*="https://"]:not([href*=""])').attr("target", "_blank");


From the above coding, just replace with your blog’s URL and save your template. Now this plugin would automatically add nofollow attribution as well as target="_blank" to your all external links except your own domain.

Frequently Asked Questions:

How to check nofollow Links on a webpage?
There are numerous ways of checking how many URLs on a webpage have nofollow attributions. However, we would prefer you to use a Free Google chrome extension that highlights all nofollow links automatically whenever a page stops loading. 
  1. Downloading Link for Chrome Users:
  2. Downloading Link for FireFox Users:
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. In simple words, it does not allow to pass the PageRank juice to any other external link.

Does it is good for SEO?
It is indeed a sensible act to nofollow all external links because it does not fully pass the ranking juice to other site. However, some SEO specialists and experts always states that even a nofollow Link has its significance because a backlink remains a backlink it does not matters whether it is a nofollow backlink or a dofollow backlink.

The Editorial Team of MyBloggerLab consists of a group of Professional Blogger geeks Led by Syed Faizan Ali (Founder of MyBloggerLab).

Comment With:
Choose Wisely!


March 1, 2013 at 6:30 AM

I have also checked your blogs links with chrome extension and source. It is also showing your blogs links nofollow. Is it working properly?

March 1, 2013 at 7:04 AM

Nice post syed. Well, you can remove the second chunk of coding with target=_blank and add rel="external nofollow" in the first one so that the script is little easy. Well, don't you think it would affect page speed?

WordPress has lots of plugins to do the task! Still thanks syed for your great effort! :) MBL Rocks!

March 1, 2013 at 7:35 AM

If we dont keep Nofollow do we have any problem

Editorial Team MOD
March 1, 2013 at 9:03 AM

Well you are unable to see Rel="nofollow" in your Source code is because you haven't added a Nofollow Tag in them manually.

Since, we are using jQuery. Therefore, it would not show the Attribution in the source code. However, When you will use the Browser Plugin which we have mentioned above and it would Highlight those Links which are set to Nofollow.

Google bots are able to read JavaScript so they will index them as nofollow. If you are still confused then you can Use "Inspect Element" instead of using Page Source and it would show you the attribution.

Editorial Team MOD
March 1, 2013 at 9:05 AM

External links should be opened into a separate window so this is the reason why target=_blank is there in the code.

Nopes, are you serious because how can a Small chunk of JavaScript could effect the page speed. Whereas, WordPress has tons of Plugins for doing this small job. So, all an all its quite straightforward and would not affect your speed.

Editorial Team MOD
March 1, 2013 at 9:07 AM

No, there is no problem but we would prefer you to use it because you don't want your site to pass juice to any external site.

It keeps your PageRank juice and helps you in Better Search engine ranking,

March 1, 2013 at 3:33 PM

Thank you very much. This will save me a lot of time :D

March 1, 2013 at 6:22 PM

Thanks brother for this jQuery code I was searching for it for last couple of days.

March 1, 2013 at 8:52 PM

I think we should do it manually to save time loading page. Anyway, thanks so much for shared!

March 1, 2013 at 9:39 PM

I am just telling that rel="external nofollow" do 2 tasks:
1) Nofollow
2) Work as target blank!


Editorial Team MOD
March 1, 2013 at 10:19 PM

May be, But target=_blank is always considered as a Safe choice

March 2, 2013 at 2:50 AM

I have studied on this several times and talked to some specialists

This is also against SEO

Adding a NoFollow to ALL External links also cause problem and you may loose your Page Rank. Many have experienced it

You should give a DoFollow to quality sites. Even Google wants you to prefer them some quality sites by giving a DoFollow external link

Links from Facebook, YouTube, Twitter or similar sites should have a nofollow link but for example i have a tech blog and i want to link MBL, than instead of NOFollow, i will give a DoFollow because MBL is a quality site

So this script is useless and i will recommend not to use as i have experienced it

Editorial Team MOD
March 2, 2013 at 3:40 AM

After a Real long time, You got some time to comment and its nice buddy.

The Allegations which you have just mentioned is totally inaccurate. I Do agree with the fact that we must Give Dofollow Attribution to a quality site Like or Bing and etc.

But, this doesn't means that if you Give Nofollow Attribution to a Link pointing to a quality site like would Hurt your Ranking or it is Against SEO.

"Google states that their engine takes "nofollow" literally and does not "follow" the link at all. However, experiments conducted by SEOs show conflicting results. These studies reveal that Google does follow the link, but it does not index the linked-to page, unless it was in Google's index already for other reasons (such as other, non-nofollow links that point to the page)."

So Saying that, Giving a Nofollow to a Quality link would hurt you or your site in terms of SEO then Sorry my friend you are totally wrong.

I would suggest you to Read this authentic article which may clear your concept about Nofollow Attributions because it merely have anything to do with SEO or Optimization.

March 2, 2013 at 5:15 AM

If we have guest post on our site. All author URL are do follow link. if we use this system. all links will be no follow. so, guest authors complain with us. i think. But, Thanks for publish this post here.

March 6, 2013 at 3:30 AM

Update: If you want that all external links be nofollow. But not all external links in new window.
then don't paste the second function.

March 15, 2013 at 11:28 PM

Thanks for sharing this post...i was searching for this for past few days...

March 16, 2013 at 5:03 AM

hey Buddy im giving links in my posts
So i wanna know that...Should i make it nofollow..??

waiting for ur reply....thnx..:)

Editorial Team MOD
March 16, 2013 at 5:05 AM

Yes you should nofollow Them

March 18, 2013 at 3:59 PM

Thnx Bro....:)
i set this script So still i have to do Nofollow thing manually..???

Editorial Team MOD
March 19, 2013 at 12:25 AM

No You don't need to manually nofollow them. It would be done automatically with the help of script

March 23, 2013 at 11:33 AM

Thnx for code and plugin!

But this code has made every link on my blog as "nofollow" even the internal blog links!

Is there any way that only the external website links are "nofollow"?

Editorial Team MOD
March 24, 2013 at 1:45 AM

You have to change with your internal link for example It would simply exclude your Internal URL and would nofollow other external links.

April 17, 2013 at 12:04 PM

i am subscribing by email to this post to get the reply via email.
all external links are nofollow when add the codes above. that is ok.
BUT images also become nofollow. i want to make it dofollow.
How do i?

April 17, 2013 at 12:05 PM

yes you should make adf links nofollow

April 22, 2013 at 6:16 AM

Another question. can i use && to to include more URLs to be dofollow.
and all other remaining would be nofollow.

Editorial Team MOD
April 22, 2013 at 10:37 AM

Well, that's quite tough to do with the current script because it just excludes your main domain and adds rel=nofollow to the rest.

We are developing new scripts to tackle such problems. Peace

Editorial Team MOD
April 22, 2013 at 10:38 AM

Nope, this would not work.

May 24, 2013 at 7:35 PM

Google took away my PR3 today, so I am going through and doing this now. I actually tried a different one and thought I was set, but I guess it didn't work. :) Thanks for the plugin.

May 24, 2013 at 8:27 PM

I am a little confused about the Google Chrome plugin I added to view nofollow and dofollow links within my blog after adding your html to mine. When I click on "Link Data", it is telling me I have 3,000+ external follow links and 0 internal followed links. Is this what I want to happen? Or is it not working? I am really confused because when I click to view the full report from the plugin, it says something different (188 Internal Follow links, 3442 external follow links). I'd appreciate any help figuring this out.

July 23, 2013 at 11:04 PM

Worked perfectly,thanks.

August 12, 2013 at 10:58 PM

Hey, jerks, changes made by scripts ARE NOT INDEXED. All your links will be DOfollow for Google, bing, Yahoo, etc.

This article is just a waste of time and another way to slow down your page.

Editorial Team MOD
August 12, 2013 at 11:07 PM

You are Totally Wrong, Google Indexes JavaScripts, Here's Why

September 14, 2013 at 8:21 AM

Hi,My blogger have 'country-specific URL (ccTLD)'

How to modify this script to my blog URL?

if I set url is "",In Taiwan the url automatic conversion "" ,they would be nofollow.


Editorial Team MOD
September 15, 2013 at 3:29 PM

We will publish a tutorial on it in a week. thanks

September 17, 2013 at 12:52 PM

Worked great! Thank you so much!

November 20, 2013 at 7:24 AM

I used this when I lot my page rank and needed a quick fix, as it would have been nearly impossible to find the one or few bad links that caused it. It worked, and I got my page rank back, but I have a problem.

Once in a while, I have a link to an external site that I absolutely need to make do follow. I have tried to go in and manually add the tag, but this script overrides it. Is there a way to manually go in and do follow single URL's with this script still in place?

Editorial Team MOD
November 20, 2013 at 10:52 PM

Well, the same way you are not making your own domain go nofollow, is the solution

Add this to your code

jQuery('a[href*="http://"]:not([href*=""])').attr('rel', 'nofollow');

Replace with the domain you don't want to nofollow.

December 25, 2013 at 1:51 PM

I want to nofollow all links automatically of only single website like

Editorial Team MOD
December 26, 2013 at 8:22 AM

Simply follow our above tutorial. It will work very well.

January 16, 2014 at 8:54 AM

Not working for me... It simply put rel=nofollow to all my blog links too.

March 20, 2014 at 8:00 PM

Thanks a lot man.. it helped me a lot :)

July 15, 2014 at 5:21 AM

Thank you for sharing

October 16, 2014 at 9:48 AM

Thanks a lot for this code! Greatly appreciated and easy to install.

I however noticed that despite my putting my own url instead of yours, my internal link are still "nofollow". My guess is that it hassomething to do with the fact that in the code I put but being in India the url in my browser is
But I know from a fact that putting the .in in HTML codes on the blogger template doesnt work.

SO I guess that Google bots are US based anyway, so they will probably see all my .com internal links as "dofollow" and all the extrenal ones as "nofollow" right?

October 19, 2014 at 6:48 PM

You are VERY wrong, I lost my PR a couple months back because I started blogging WAY before I knew anything about nofollow links, so I had a ton of back posts that were dofollow and got penalized for it. I added this and resubmitted my blog back to google and got my PR back within a week or so. SO YES.. this DOES work!

Editorial Team MOD
October 20, 2014 at 6:53 AM

Hey Jess,

I am glad to know you got your PR Back :)

March 3, 2015 at 12:57 AM


The reason is all links on blog are now opening in a new tab including internal links. That means code is not working? or should be updated? Please Help.

July 5, 2015 at 7:23 AM

Wondeful code. I have use your code for my blog and it is so good for nofollow all of links I do not like

December 25, 2015 at 10:52 AM
April 21, 2016 at 8:18 PM

Worked perfectly

May 29, 2016 at 11:21 PM

Thank you for the post, it helped me a couple months ago, but could you tell me how I can keep some sidebar banners dofollow?
Thank you!

July 18, 2016 at 5:48 PM

Thanks Dude works in my blogspot>

August 28, 2016 at 9:08 AM

i have just placed this code on my Blog
will it work in post sections also ?

August 29, 2016 at 9:28 AM

I have ever used this code on my website and untill now, it is still so wonderful. I have not worried about all of ex - link on my site to other sites

Post a Comment

We’re eager to see your comment. However, Please Keep in mind that all comments are moderated manually by our human reviewers according to our comment policy, and all the links are nofollow. Using Keywords in the name field area is forbidden. Let’s enjoy a personal and evocative conversation.

Helping You to do Cool Things With Blogger Since 2012™.

© Copyright 2012 - 2018. MBL Networks, All Rights are Strictly Reserved.