DoFollow plugin for WordPress

Written late in the afternoon in English • Tags: ,

Due to the low volume of comments on my site, I didn’t think it is necessary to tag links in comments with the rel="nofollow" attribute. All the links in the handful of comments that exist are just fine. I created a plugin to disable such automatic tagging.

Download: dofollow.php

Tagging for automatically converted links and the author URL was not using filters, so I put together a patch that preserves the original behaviour through using the wp_rel_nofollow filter. By using filters, it is possible for a plugin to disable the tagging, and the DoFollow plugin does just that.

Patch: nofollow.diff

I did not modify wp_rel_nofollow to append to an existing rel attribute, although I thought that would be a nice touch…

Update: The patch is no longer required, so you can use this plugin on an unmodified WordPress installation. I have also added an optional timeout value, so you can have rel="nofollow" added to recent comments only. The timeout was inspired by Christoph Rummel’s no-nofollow plugin.

14 comments

  • 1

    […] e la función make_clickable, líneas 482 a 489. Actualización: Existe un plugin llamado doFollow creador por Kimmo Suominen con efecto similar. […]

    Zootropo » Cómo eliminar el atributo nofollow de los comentarios de Wordpress 1.5 — 25.2.05 @ 10:45

  • 2

    […] os, no nos gusta, está esta solución para eliminarlo sin tener que editar ningun fichero. Un simple plugin conocido gracias a Zootropo. Sin comentarios, trackbacks o pingbacks […]

    superporcel » Elimina el atributo “no follow” en wordpress — 25.2.05 @ 14:36

  • 3

    DoFollow plugin para WordPress 1.5

    Afortunadamente, parece ser que no soy el nico que piensa de esta manera. Es el caso de Kimmo, que acaba de montar un plugin diseado para anular el nofollow. El nombre del plugin no poda ser otro que DoFollow y se sumamente sencillo de instalar: subir …

    Mangas Verdes — 27.2.05 @ 7:51

  • 4

    […] . I’ve only noticed one false positive so far out of hundreds of spam comments. The dofollow plugin. Because I am really fairly good about getting rid of spam comments that slip thro […]

    TangognaT » Blog Archive » some worpress plugins I use on this site — 5.3.05 @ 9:05

  • 5

    Eliminar el atributo nofollow en WordPress 1.5

    Nofollow es la solucin propuesta por Google, y despues acatada por otros grandes navegadores, para prevenir el spam en los comentarios de los weblogs. El objetivo es que los comentarios con el atributo rel=”nofollow” no sern tomados en cuenta por los…

    La mat por un yogur — 6.3.05 @ 9:28

  • 6

    Hi David!

    A manual approval would require modifications to the database schema, which I’d rather not do. I’m glad that the timeout works for you. Another option would be to force all comments to moderation, but — like me — you’d probably prefer comments to appear immediately.

    I just switched on Spam Karma yesterday and re-opened comments on all entries in my blog. So far so good, and I’m hoping things can stay this way. If I see spam trickling in, I’ll just enable the timeout in DoFollow.

    Kimmo Suominen — 8.3.05 @ 14:34

  • 7

    I am thinking of switching to WordPress (MT is annoying me) however I want to have full control over this nofollow stuff. Can your plugin allow ‘nofollow’ until I manually approve comments?

    David Russell — 8.3.05 @ 9:38

  • 8

    I would edit the previous comment if possible, but I just read the whole ‘timeout’ thing which is adequate for my needs :P

    David Russell — 8.3.05 @ 11:52

  • 9

    DoFollow updated

    I just deployed DoFollow on a vanilla WordPress 1.5 installation, and found out that there was a bug in the nofollow tag removal logic used with an unpa…

    i summon one kim — 8.3.05 @ 14:29

  • 10

    DoFollow and nightlies

    If you are running a recent nightly or svn checkout, you’ll probably need to upgrade to DoFollow 1.3.

    The patch detection stopped working due to a change in the wp_filters data str…

    i summon one kim — 8.3.05 @ 16:18

  • 11

    NoFollow Free

    Este Blog es ahora NoFollow Free… …gracias a un plugin ke consegui….

    El Blog Nulo de Gianko — 17.3.05 @ 7:56

  • 12

    […] evos el nofollow en la versión 1.5. Si lo queréis quitar, es tan fácil como usar el plugin DoFollow Esta entrada fue publicada el Martes, 22 de Marzo […]

    El Rincón de un Linuxero » DoFollow — 22.3.05 @ 14:20

  • 13

    DoFollow 2.0

    I’ve released DoFollow 2.0 to go with WordPress 1.5.1. The functionality is the same as before, and the plugin can be used with (an unpatched) 1.5 as well.

    The patch I had proposed to core WordPress functionality is gone: the developers prefer …

    i summon one kim — 11.5.05 @ 6:07

  • 14

    […] ributo en la etiqueta link Mundo Geek o más cómodo aún instalar un simple plugin lamado Dofollow que a mí por lo menos me va bien. Y para acabar la lista inicial, vía Jesusbet m […]

    Blog Davilac.net » Empezando con WordPress — 18.6.05 @ 17:11

Sorry, commenting is not available for this post.