Follow My Links

June 24, 2009

in Blogging, SEO

Follow My Links is a very simple plugin that prevents WordPress from automatically adding a “rel=nofollow” attribute to the following two categories of authorial links:

  1. links in the post author’s comments;
  2. links to the post author’s URL (usually linked to from the comment author’s username).

New in version 1.2: Now also allows the post author to selectively remove nofollow from links in user comments by editing them.

The default behaviour of WordPress (as of version 2.8) is to add a “rel=nofollow” attribute to all links in the comments section, including links in comments made by the post author and links to the post author’s website. The nofollow attribute prevents search engines like Google from following (indexing) such links, and passing “link juice” (including PageRank™) to the linked pages. In fact, nofollow was originally introduced by the major search engines as a deterrent or counter-measure to link spam in blog comments. For that reason, it doesn’t make much sense to have nofollow on your own links, when you’re the post author or blog owner, since those links are supposed to be “editorially given” (and therefore spam-free): that’s where this plugin comes at hand.

Please note that Follow My Links will not remove nofollow from links in existing authorial comments: that’s because, since WordPress adds the nofollow attribute to all links in comments at database level, there’s no way to determine whether an existing nofollow was introduced by WordPress, or explicitly by the comment author him/herself. So, if you want to strip nofollow from links in existing authorial comments, you’ll have to do it manually.

The nice part is that you’re still free to add “rel=nofollow” to any link in your own comments for whatever reason on a case-by-case basis, and if you do choose to do so, Follow My Links will leave the nofollow intact. Finally, as the post author, you can also remove nofollow from any link in a user comment by editing or quick-editing that comment’s HTML via the WordPress admin interface. Pretty neat, huh? ;)

Download

You can download Follow My Links from the WordPress Plugin Directory.

Installation

  1. Unzip, upload the ‘follow-my-links’ folder to your WordPress plugin directory (usually ‘/wp-content/plugins/’);
  2. Activate the plugin through the ‘Plugins’ menu in WordPress;
  3. You’re done (no configuration needed)! :)

Changelog

1.2

  • FIXED: Now allows the post author to remove nofollow from links in user comments by editing (07/10/2009)

1.1

  • FIXED: Bug preventing the correct detection of authorial comments (06/25/2009)

1.0

  • First public release (06/24/2009)

Donations

If you like this plugin, feel free to donate a link to this post or buy me a slice of pizza.

Bug reports, feature requests, questions, and feedback

Follow My Links is my very first WordPress plugin. Please do send me your feedback in the comments below. Thanks!

  • Share/Bookmark

{ 7 trackbacks }

» I Plugin per Wordpress fatti dagli utenti GT
June 25, 2009 at 11:23 pm
WordPress Plugin Releases for 06/30 | Weblog Tools Collection
June 30, 2009 at 8:03 pm
9款WordPress链接相关插件 | 互联网的那点事
August 10, 2009 at 3:04 pm
What Plugins Do I Have Installed On My Blog? | Paul-Lear.com
August 14, 2009 at 10:21 pm
17 Useful Wordpress Plugins That You Should Use | Design Informer
November 2, 2009 at 2:06 am
Why I U Comment, I Follow | SMO Blogger
November 23, 2009 at 4:08 pm
List of plugins I use on this blog — Everfluxx
January 19, 2010 at 2:52 am

{ 15 comments… read them below or add one }

Petro June 24, 2009 at 9:44 pm

WordPress adds the nofollow attribute to all links in comments at database level

Really? I didn’t know about that: I always worked on comments.php in templates to work around the nofollow attribute on comment links.

By the way, I prefer to leave links in author’s URL and comment content nofollow-free, and show some link love to my loyal commenters who leave useful (thus, relevant) links (and, for that matter, whose name is not “apartments for rent” or “search engine optimization”!).

I use the nofollow case by case plugin to selectively add nofollow (you just have to drop a /dontfollow at the end of any URL you don’t want to vouch for).

Definitely not a scalable solution for big numbers blog, but a suitable one if you receive as much as few comments per day.

C ya soon ;)

Everfluxx June 24, 2009 at 10:47 pm

Hi Petro! Check the the comment_content field in your wp_comments database table: you’ll notice that links have “rel=nofollow” hardcoded in the HTML. Nofollow on URLs is inserted on-the-fly instead, because URLs in comments are stored as URLs (not links) and “linkified” when comments are displayed. Nofollow on comment links/URLs is handled by the wp_rel_nofollow() and make_clickable() functions in /wp-includes/formatting.php; both functions are added as filters to the pre_comment_content and comment_text hooks (see this article for a better explanation).

Uh-oh! Just noticed that the link in your comment above doesn’t have nofollow… Hmmm, I smell a bug. :D

Everfluxx June 25, 2009 at 2:44 am

OK, I’ve fixed the bug! Now the plugin works correctly –or so it seems. :)

You can get the updated version (1.1) by clicking on the download link in my post.

Thanks for your feedback, Petro. I’ll leave that link in your comment nofollow-free, of course. ;)

Petro June 25, 2009 at 2:23 pm

You’re welcome, my friend!

Just a tip: avoid testing comments in posts where you have more than 0 email subscribers,unless you’re willing to flood them ;)

Everfluxx June 25, 2009 at 6:29 pm

D’OH! Sorry… :D

Telephone systems July 10, 2009 at 9:24 am

But the comments here are having nofollow tags, can we manage to give dofollow attribute to selected comments on our blog posts ? well if yes then that wud be awesome. i am a new blogger here and trying to learn from other bloggers

Everfluxx July 10, 2009 at 10:25 pm

Thanks for asking. Actually, my plugin was supposed to let you do that already, but it didn’t, because of a bug. :) So I’ve fixed it and released an update (v.1.2): now the post author can also “give dofollow” –i.e., remove nofollow from selected links in user comments by editing them (remember that the default is still to have nofollow on all links in user-entered comments).

You can download Follow My Links version 1.2 from the WordPress Plugin Repository. Enjoy!

Marlin July 31, 2009 at 9:46 pm

I don’t think that this plugin works for the lastest (2.8.2) version. I’ve uploaded and I do not see any options of changing the links from nofollow to dofollow. Maybe I’m doing something wrong, I just can’t get this to work for some reason. Any help would be nice.

Everfluxx August 2, 2009 at 12:41 pm

Hi Marlin! Follow My Links has been tested and works with the latest WordPress version (2.8.2). You don’t see any options to set simply because no configuration is required for the plugin to work: just download/upload it, activate it, and you’re done.

Once installed, Follow My Links will prevent WordPress from nofollowing links in new authorial comments (i.e., new comments made by the post author him or herself).

Please note that links in existing authorial comments and in all user comments (existing or new) wil remain nofollowed: to remove nofollow from those links, you will have to edit the comment’s HTML via the WordPress admin interface, as specified in my post above.

Smashing Themes August 13, 2009 at 9:30 am

Guess what, I don’t even think if Google gives a damn to nofollow thing, On the other hand, if you’re removing the nofollow thing from comment urls, its going to get you good amount of original comments.

Marlin August 13, 2009 at 8:32 pm

Either I am stupid, or the fact is that none of these plugins are working. I’ve done everything know to man to try and get wordpress to remove the nofollow tags but nothing. I’ve even removed all the nofollow tags I could find in the source code and the links still show up with a nofollow link. I don’t know what else to do, the guys on the wordpress forum are no help whatsoever, have not even gotten a response as to what might be wrong. You can view my site and try to submit a comment but it is just going to add a nofollow anyway. I’m starting think that wordpress is blocking these plugins from working in the latest versions. I’m currently running the “NoFollow Free” plugin and that is doing nothing as well.

I’ve been working on this for days with no luck, I’m thinking of just putting the old site back up and saying forget wordpress. It just amazes me how you can’t do the simplest things with this platform.

Andy January 7, 2010 at 12:04 am

Hi Marlin,

Thanks for the plug-in!
I’m just setting up my new blog with Wordpress v2.9.1 – it did come up with a message that the plug-in wasn’t tested on that version of Wordpress.
I’m on version 1.2 of your plug-in.
Just need to check next time that for new posts the no follows have been removed.

h t t p : / / w w w . n e x u s o n e b l o g . c o . u k /

Everfluxx January 7, 2010 at 12:32 pm

@Andy: “Follow My Links” is tested and working with WordPress 2.9.1. I will update the compatibility tag in the plugin readme file. I shall also try and make it clearer that my plugin is not meant to and will not remove nofollow from links in every comment, but just from those appearing in the post author’s comments.

P.S.: Akismet had flagged your comment as spam because of the totally irrelevant link you dropped in it. I was unsure whether I should delete your comment or edit+unspam it in order to publicly respond to your question. I chose the latter, so I removed the anchor but left the URL there just to show everybody how spammy that link really is.

P.P.S.: My name is not Marlin.

Rob Watson February 4, 2010 at 4:48 pm

Hey Everfluxx

I’ve installed your plugin but nofollow links remain. I’m using wordpress 2.9.1.

I appreciate your time is valuable, but would you be able to have a look at the last comment on this page. I left it after installing the plugin. Is there anything I’m missing?

http://www.ebootcamp.co.uk/2009/12/did-you-know-take-a-look-into-future-here/

thanks in advance

Rob

Everfluxx February 4, 2010 at 4:59 pm

Hi Rob, the post you mentioned is by user “admin” and the comment is by user Rob Watson: that is probably why the link on your user name is still nofollowed. Follow My Links only affects comments made by the same WordPress user as the post author.

I too am using WP 2.9.1 and, as you can see, the link on my user name above is nofollow-free.

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post:

Next post: