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 Blogger.com >> 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='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js' type='text/javascript'></script>
<!--End-->
<script type="text/javascript">
jQuery(document).ready(function () {
jQuery('a[href*="http://"]:not([href*="http://www.mybloggerlab.com"])').attr('rel', 'nofollow');
jQuery('a[href*="https://"]:not([href*="https://www.mybloggerlab.com"])').attr("target", "_blank");
});
</script>
From the above coding, just replace www.mybloggerlab.com 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.
- Downloading Link for Chrome Users: http://goo.gl/MuTfC
- Downloading Link for FireFox Users: http://goo.gl/Ru6Vg
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.
About the Editorial Team
The Editorial Team of MyBloggerLab consists of a group of Professional Blogger geeks Led by Syed Faizan Ali (Founder of MyBloggerLab).
51 comments
I have also checked your blogs links with chrome extension and source. It is also showing your blogs links nofollow. Is it working properly?
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!
If we dont keep Nofollow do we have any problem
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.
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.
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,
Thank you very much. This will save me a lot of time :D
Thanks brother for this jQuery code I was searching for it for last couple of days.
I think we should do it manually to save time loading page. Anyway, thanks so much for shared!
I am just telling that rel="external nofollow" do 2 tasks:
1) Nofollow
2) Work as target blank!
:)
May be, But target=_blank is always considered as a Safe choice
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
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 Google.com or Bing and etc.
But, this doesn't means that if you Give Nofollow Attribution to a Link pointing to a quality site like Google.com 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.
http://en.wikipedia.org/wiki/Nofollow
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.
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.
Thanks for sharing this post...i was searching for this for past few days...
Yes you should nofollow Them
No You don't need to manually nofollow them. It would be done automatically with the help of script
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"?
You have to change www.mybloggerlab.com with your internal link for example www.example.com. It would simply exclude your Internal URL and would nofollow other external links.
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?
yes you should make adf links nofollow
Another question. can i use && to to include more URLs to be dofollow.
and all other remaining would be nofollow.
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
Nope, this would not work.
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.
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.
Worked perfectly,thanks.
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.
You are Totally Wrong, Google Indexes JavaScripts, Here's Why
http://searchengineland.com/google-can-now-execute-ajax-javascript-for-indexing-99518
Hi,My blogger have 'country-specific URL (ccTLD)'
How to modify this script to my blog URL?
if I set url is "mybloggerlab.blogspot.com",In Taiwan the url automatic conversion "mybloggerlab.blogspot.tw" ,they would be nofollow.
thinks!
We will publish a tutorial on it in a week. thanks
Worked great! Thank you so much!
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?
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*="http://www.mybloggerlab.com"])').attr('rel', 'nofollow');
Replace http://www.mybloggerlab.com with the domain you don't want to nofollow.
I want to nofollow all links automatically of only single website like www.abc.com
how?
Simply follow our above tutorial. It will work very well.
Not working for me... It simply put rel=nofollow to all my blog links too.
Thanks a lot man.. it helped me a lot :)
Thank you for sharing
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 cynublog.blogspot.com but being in India the url in my browser is cynublog.blogspot.in.
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?
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!
Hey Jess,
I am glad to know you got your PR Back :)
Yep I'm agree with КОСМО МИЗРАИЛ ГОРЫНЫЧ,
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.
Wondeful code. I have use your code for my blog and it is so good for nofollow all of links I do not like
i done on my blog!!
http://girls-mobilenumbers.blogspot.com/
Worked perfectly
thanks
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!
Thanks Dude works in my blogspot> resultadosdojogodobichoemtemporeal.blogspot.com.br
i have just placed this code on my Blog
will it work in post sections also ?
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.