I've Switched to Dofollow

By default WordPress adds a nofollow attribute value to some links, such as in the comments section. This is used so that, generally in user-generated content, they can share the PageRank with the website that they want to share it with, and not share it with potential spammers. This is used to deter spammers from posting because they wouldn't get any "link love".

This is done by using the rel attribute of a.

<a href="http://example.com/" rel="nofollow">spam link</a>

It Just Hurts Your Dofollow Links

From Nicholas Z. Cardot of Site Sketch 101:

Imagine a page with a Google page rank of 8. This page has 4 outbound links and 2 of those links having the nofollow tag. The page’s rank of 8 will be divided among all 4 sites so that each page would receive 2 page rank. However, the nofollow links will receive nothing and the others will still only receive 2. This effectively wastes half of the page rank that could be shared.

Since your dofollow links would only getting the PageRank that they would get if the other links were not nofollow, it's pretty much just a waste of a few bytes.

After you disable nofollow, be sure to install a spam filter plugin (which you should already be using, right?), such as Askimet.

Doing This in WordPress

For WordPress, you can use the Nofollow Case By Case plugin. If you're feeling a little adventurous, and you don't mind getting into some PHP files, you can try doing this yourself. This works in WordPress 2.8.2, but it should work in other versions, too. Make sure you backup your site before you try this.

  1. Open up wp-includes/comment-template.php in your favourite text editor.
  2. Find the line (line 148) containing
    $return = "<a href='$url' rel='external nofollow' class='url'>$author</a>";
  3. And replace it with
    $return = "<a href='$url' class='url'>$author</a>";
  4. Save the file, upload it to your server and view the source in your browser to see if it works.

Would you disable nofollow for your blog comments?

Stay Updated

Did you enjoy this post? Don't miss a single post by getting free updates!


  1. July 29, 2009

    Thanks for citing my article over there. Dofollow is definitely the way to go. Great idea on showing how to change that code to get it done.

  2. July 29, 2009

    Thanks. I was just digging around the code to see how that worked.

  3. July 31, 2009

    Hey, this is a very interesting article! I'm still not entirely convinced that I should Dofollow comments on my blog, but you make a decent case for the idea!

    Nice website by the way!

  4. August 3, 2009

    I encourage people to use dofollow with cautiousness since there will be a lot of people simple searching for dofollow blogs to comment on. Personally I will not change for some time now, but maybe..

  5. August 4, 2009

    Thanks for the comments, everyone. After I upgraded to WordPress 2.3, I realized that the modified comment-template.php file was replaced with a new one, so I switched to using Nofollow Case By Case

  6. October 24, 2009

    it is being very hard to find do follow blogs now a days. i hope all of u who runs a blog changes to dofollow blog... :D

  7. January 12, 2010

    I like do follow. It encourage me to leave a comment. I come across many site. Many site change between do follow and no follow.

  8. March 10, 2010

    Thanks. I will try its.

  9. October 18, 2010

    Thanks for the tip, I think I'll switch our blog to dofollow too. It seems to make people more inclined to comment on posts.

  10. November 25, 2010

    Thanks for the info man. When I have a blog i'll turn it into dofollow too also to get more participation, but got to be careful with spam.


  11. July 2, 2011

    Thank you for sharing code! This can be a great help for those seeking to follow the blog. And of course we should also remember that whenever we commented it must be relevant to the topic so that it will be approved by the admin. Anyway, this is amazing! hope you can post for further technical just like this. Thanks list this blog