• I whipped this up pretty quick using the filter code from Six Apart’s rel=nofollow spam catching plugin.

    Here’s the link to the plugin: https://www.phaedo.cx/includes/wpNofollow.php.zip

    The source: https://phaedo.cx/includes/wpNofollow.phps

    It basically just filters anchor tags and adds in the rel=nofollow attribute. Google, MSN, and Yahoo! all announced support today for this tag. You can read more about it here: https://phaedo.cx/archives/2005/01/18/support-for-nofollow/ there are links to everyone’s announcements.

    The comment text filtering is automatic, but if you want comment_author_link to return a link with the attribute in it, you need to replace the call to that function in wp-comments.php with the function in my script named comment_author_link_nofollow().

    this is my first plugin for WP and I’m sure I’ve not done everything 100% correct, so please feel free to comment and criticize, I can take it ??

Viewing 6 replies - 31 through 36 (of 36 total)
  • That’s great. Thanks.

    It is a pity you still have to edit wp-comments.php, by changing the text comment_author_link() to comment_author_link_nofollow(), but it’s still getting closer to perfection. ??

    If all I wanted was PageRank I would join the different pingers and whore them for hits and rank, instead I just want people that are interested in the same topics I am, to eventually browse to my site/blog

    OK, I think you and a couple of other people are confused about what this tag means. ‘No follow’ is an instruction to the Googlebot. It does NOT prevent your link from appearing. It does NOT prevent actual readers from following the link to your blog. If you want to boost the pagerank of legitimate commenters, all you have to do is add them to your blogroll or mention them in a post, because WordPress will NOT add ‘no-follow’ to your Links Manager links, or indeed to any links you make yourself.

    In short, nobody can grab pagerank from your blog anymore unless you decide to give it to them. I can’t see why anyone would have a problem with that.

    Anonymous User 6434

    (@anonymized-6434)

    You’ve already got this plugin, but the code seems a little bit complex for such a simple operation! I’ve written something, that for now, seems to work just fine:

    https://elliottback.com/wp/archives/2005/01/19/wp-no-pagerank/

    Thread Starter clintology

    (@clintology)

    Hopefully 1.5 will contain support for nofollow as well as whitelisting certain people. Not sure how you’d implement that though.

    Does anything think that this sort of refinement to wp-nofollow would be worthwhile?

    https://minutillo.com/steve/weblog/2005/1/19/a-refinement-to-rel-nofollow

    Basically inserting nofollow attributes for 10 days, then after that removing them. Perhaps a field could be added to the comments table, or a new table added that kept track of which comments should have and not have the attribute applied.

    Maybe a little web interface that let you uncheck a box on each comment you wanted to un-nofollowize.

    Thread Starter clintology

    (@clintology)

    Hopefully 1.5 will contain support for nofollow as well as whitelisting certain people. Not sure how you’d implement that though.

    Does anything think that this sort of refinement to wp-nofollow would be worthwhile?

    https://minutillo.com/steve/weblog/2005/1/19/a-refinement-to-rel-nofollow

    Basically inserting nofollow attributes for 10 days, then after that removing them. Perhaps a field could be added to the comments table, or a new table added that kept track of which comments should have and not have the attribute applied.

    Maybe a little web interface that let you uncheck a box on each comment you wanted to un-nofollowize.

    Thread Starter clintology

    (@clintology)

    ecp29, correct me if I’m wrong, but isn’t comment_author_url just a URL, not an HTML anchor link?

    https://www.abc.com

    not blah

    Therefore running a replacement against it won’t fix the link. The link is actually generated in a few of the comment templating functions. Am I wrong though? I tried filtering comment_url and it didn’t seem to work the way I thought it should.

    Let me know!

Viewing 6 replies - 31 through 36 (of 36 total)
  • The topic ‘Nofollow Plugin for WordPress 1.2’ is closed to new replies.