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.
I have also checked your blogs links with chrome extension and source. It is also showing your blogs links nofollow. Is it working properly?
ReplyDeleteWell you are unable to see Rel="nofollow" in your Source code is because you haven't added a Nofollow Tag in them manually.
DeleteSince, 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.
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?
ReplyDeleteWordPress has lots of plugins to do the task! Still thanks syed for your great effort! :) MBL Rocks!
External links should be opened into a separate window so this is the reason why target=_blank is there in the code.
DeleteNopes, 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.
I am just telling that rel="external nofollow" do 2 tasks:
Delete1) Nofollow
2) Work as target blank!
:)
May be, But target=_blank is always considered as a Safe choice
DeleteIf we dont keep Nofollow do we have any problem
ReplyDeleteNo, 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.
DeleteIt 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
ReplyDeleteThanks brother for this jQuery code I was searching for it for last couple of days.
ReplyDeleteI think we should do it manually to save time loading page. Anyway, thanks so much for shared!
ReplyDeleteI have studied on this several times and talked to some specialists
ReplyDeleteThis 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.
DeleteThe 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.
ReplyDeleteUpdate: If you want that all external links be nofollow. But not all external links in new window.
ReplyDeletethen don't paste the second function.
Thanks for sharing this post...i was searching for this for past few days...
ReplyDeleteYes you should nofollow Them
ReplyDeleteNo You don't need to manually nofollow them. It would be done automatically with the help of script
ReplyDeleteThnx for code and plugin!
ReplyDeleteBut 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.
Deletei am subscribing by email to this post to get the reply via email.
ReplyDeleteall 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?
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.
DeleteWe are developing new scripts to tackle such problems. Peace
yes you should make adf links nofollow
ReplyDeleteAnother question. can i use && to to include more URLs to be dofollow.
ReplyDeleteand all other remaining would be nofollow.
Nope, this would not work.
DeleteGoogle 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.
ReplyDeleteI 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.
ReplyDeleteWorked perfectly,thanks.
ReplyDeleteHey, jerks, changes made by scripts ARE NOT INDEXED. All your links will be DOfollow for Google, bing, Yahoo, etc.
ReplyDeleteThis 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
Deletehttp://searchengineland.com/google-can-now-execute-ajax-javascript-for-indexing-99518
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!
DeleteHey Jess,
DeleteI am glad to know you got your PR Back :)
Yep I'm agree with КОСМО МИЗРАИЛ ГОРЫНЫЧ,
DeleteThe 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.
Hi,My blogger have 'country-specific URL (ccTLD)'
ReplyDeleteHow 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
DeleteWorked great! Thank you so much!
ReplyDeleteI 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.
ReplyDeleteOnce 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
DeleteAdd 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
ReplyDeletehow?
Simply follow our above tutorial. It will work very well.
DeleteNot working for me... It simply put rel=nofollow to all my blog links too.
ReplyDeleteThanks a lot man.. it helped me a lot :)
ReplyDeleteThank you for sharing
ReplyDeleteThanks a lot for this code! Greatly appreciated and easy to install.
ReplyDeleteI 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?
Wondeful code. I have use your code for my blog and it is so good for nofollow all of links I do not like
ReplyDeletei done on my blog!!
ReplyDeletehttp://girls-mobilenumbers.blogspot.com/
Worked perfectly
ReplyDeletethanks
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?
ReplyDeleteThank you!
Thanks Dude works in my blogspot> resultadosdojogodobichoemtemporeal.blogspot.com.br
ReplyDeletei have just placed this code on my Blog
ReplyDeletewill 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
ReplyDelete