You are here:   Home
Register   |  Login

Captured Technology - Blog

Minimize

Overwriting the NoFollow Tag with DoFollow

by Steve Patterson on Friday, February 13, 2009 11:54 AM

Overwriting the NoFollow Tag with DoFollow

DotNetNuke is the platform that 6 blogs are developed with that I am the administrator for. But the more I use Wordpress, the more I think I should convert them because of the great SEO and free plugin availability. With Wordpress there's a simple plugin that will change the default NoFollow rel tag on comments to DoFollow. This provides your readers the ability to gain links with Google and other search engines when they comment.

DNN recently upgraded their blog module and the new module is nice, but there's no way to change the NoFollow tags unless you change the source code and compile your own version. That is until I came upon this Javascript while searching Google that does exactly what I wanted to do. By running this script at the end of a page, it will find the NoFollow tags and convert them to DoFollow tags. That simple and my previously NoFollow blogs are now "U Comment, I Follow" blogs. I will be sticking with DNN for the time being, hoping newer versions will incorporate more Wordpress features.

if (document.getElementsByTagName) {
var aElements = document.getElementsByTagName("a");
for (var i=0; i<aElements.length; i++) {
var relvalue = aElements[i].rel.toUpperCase();
if (relvalue.match("NOFOLLOW") != "null") {
aElements[i].rel = "dofollow";
}
}
}

Author
Steve Patterson

Latest technology news.

28 comment(s) so far...

Anonymous 2/14/2009

I really like the dofollow blogs for what they offer their readers. Do you think there's an issue with search engines reading the nofollow tags prior to the script changing them to dofollow?

 
Anonymous 2/14/2009

You have to hope DNN improves their blog modules so adding code to the site is not needed. But it looks like a great script.

 
Anonymous 2/18/2009

It's really great, i thought there is no way to make nofollow tags dofollow

 
Anonymous 2/19/2009

The process is clear, thanks!

 
Anonymous 2/20/2009

very interesting..........have anybody tried this way????

 
Anonymous 2/20/2009

yes, i tried, but failed, maybe i did something wrong

 
Anonymous 2/20/2009

I thinks this is one of the easier tutorial ever made. The step are clear and i will give it a try now.

 
Anonymous 2/20/2009

thanks for the info ;)

 
Anonymous 2/23/2009

nicely done..a good source for those who want to convert the noFollow to doFollow.<br><br>Ill bookmark this one.

 
Anonymous 3/4/2009

it is a good thing ,but how to resist spam??

 
Anonymous 3/4/2009

Amazingly the Security Code entry seems to be keeping the really bad spam out of the comments so far. Hopefully that will be enough.

 
Anonymous 3/6/2009

nice share. I agree to give a link juice for a related comment. I was thinking of this for a long time. how could a free blog can have a dofollow comment. thanks for sharing

 
Anonymous 3/13/2009

Always nice to be able to let the link juice flow...

 
Anonymous 3/13/2009

Good blog comments do deserve juice. I think if a capture image is used it's fine to do follow.

 
Anonymous 4/7/2009

Very nice simple solution. <br>Nice blog as well, I've seen some very interesting ideas in the posts I've checked out :)

 
Anonymous 4/8/2009

I guess it's always a toss up between deterring spammers and rewarding people for leaving quality comments. I guess it just means careful moderation.

 
Anonymous 4/8/2009

Nice solution, makes adding DOfollow a lot easier

 
Anonymous 4/8/2009

I guess it's always a toss up between deterring spammers and rewarding people for leaving quality comments. I guess it just means careful moderation.

 
Anonymous 4/20/2009

thanks for this. tried this worked like a charm. Ace!

 
Anonymous 5/5/2009

Glad to have another dofollow blog to visit<br>Your blog is already doing so well so this would more of a thanks you to your readers i guess

 
Anonymous 5/6/2009

An alternative would be just to search for nofollow and just remove it.

 
Anonymous 5/6/2009

That is exactly what the script does.

 
Anonymous 5/11/2009

Will this not leave you wide open to spam?<br>

 
Anonymous 5/11/2009

The security code entry along with manual comment management has been enough to keep spam in control.

 
Anonymous 12/13/2009

I am very glad that I have read your post. Hoping that this will not be the last post that I could be read written by you. I am waiting for your next post.

 
Anonymous 10/25/2010

This is a really nice bit of script actually to make dofollow. Nice work, keep it up!

 
Anonymous 11/3/2010

Hey there,<br /><br />This is really one of the best blog and I like it a lot.Its having excellent stuffs day by day and script to make dofollow helps me a lot.Keep it up.

 
Anonymous 10/15/2012

That's greats, think to try this tips to overwriting nofollow tag at profile backlink. thank you

FaceBook

Minimize

Mobile Version

Minimize
Add CapturedTech - Technology Mippin widget

Translate

Minimize

Sponsors

Minimize

Categories

Minimize

Bloggers

Minimize
Bloggers - Meet Millions of Bloggers

u comment, i follow