Preventing comment spam

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
6/12/2008 5:23:39 PM
Gravatar
Total Posts 45

Preventing comment spam

I ran across this article today and thought I would post it here for future reference as I noticed the rel="nofollow" attribute is not be used in the blog comments when the user posts a link.  This would help deter comment spam in the blogs and forums.  Not sure how hard it would be to implement in only the blog and forum modules or maybe implement it based on the users role.

See this link for more info: http://googleblog.blogspot.com/2005/01/preventing-comment-spam.html

6/13/2008 7:03:46 AM
Gravatar
Total Posts 18439

Re: Preventing comment spam

Hey Todd,

First let me say thanks again for your sponsoring part of my trip to the MySql conference! I really appreciated it.

I've seen this nofollow post before and considered doing it but never got around to it yet. I'm getting virtually no comment spam using ReCaptcha so I guess it hasn't come up as an important priority. I'm considering implementing it though. Currently we use NeatHtml for prevention of cross site scripting in the comments so I sent Dean Brettle an email to see if he might be interested in adding this as a feature in NeatHtml.

The only thing I'm unclear about is do I really want this for all links entered in the comments? I mean if real people like you post a link in my blog comments why not just let it be a normal link? If you post a link to your site I don't mind it being noticed by the google crawler. If someone posts an inappropriate link I delete the comment. I get an email whenever comments are posted and I always check them to see if any spam got through.

So I'm just wondering if its going to penalize good people who I don't mind linking to.

Best,

Joe

6/17/2008 9:52:14 PM
Gravatar
Total Posts 148

Re: Preventing comment spam

It was on my TODO list.  I've added it in NeatHtml-trunk.215. For details, see the "Removing rel="nofollow" from links" section of the NeatHtml manual.

As for how to avoid unnecessarily penalizing links that aren't spam, the easiest way might be to not use nofollow in posts by registered users.  Most spammers won't bother to register.  If they do, you can make all of their links nofollow by just unregistering them.

 

 

6/18/2008 6:51:22 AM
Gravatar
Total Posts 18439

Re: Preventing comment spam

Awesome work Dean!

So with the new version of NeatHtml it will by default automatically add the rel=nofollow for any links entered inside the UntrustedContent control, thats perfect!

I'll upgrade mojoportal to your new version of NeatHtml as soon as possible.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.