Community Server on my mind

J-O Eriksson's blog


  • Running on CS 2.1 SP 2

    See top menu for subscription options

    Technology Blogs - Blog Top Sites

    BlogRankers.com

    Add to Technorati Favorites



Deleting Auto-Deleted Spam comments

The last week, many of us have seen a large increase of spam comments sent to our Community Server blogs. That has given us the opportunity to learn how CS Spam rules work, and to see what a great job they do if configured correctly. And you might also have heard about the Akisment module in the Alabaster package that further adds to the CS Spam rules capability.

So if you're running CS 2.1 on your blog, you can give those spammer a hard time. Smile Personally I don't understand the purpose of the lastest spam wave. I mean many of the comments don't even have a link in them, just a couple of bad words, or not even that.

What happens when CS Spam rules rates a comment as Spam with enough 'spam points', is that it auto-deletes the comment. With auto-delete it means it is still in the comments list for your blog, but not seen publicly on your blog. But if you look at your comments list for your blog, it is by default filtered to show just published comments. If you instead filter it to just show Spam, those auto-deleted comments will show in your control panel.

That list has on some webs of mine become very large last weeks. And before I knew better Geeked I manually went in and deleted those comments a couple of times a day. Then someone said to me that those are automatically deleted every 30 days by CS, which made me research a bit on how that was done.

What I found is that it is done by one of the CSJobs called DeleteStaleSpamCommentsJob. It runs by default every 15 minutes, and delete spam comments that are older then a expirationDays setting in communityserver.config. If you open communityserver.config and look at the end of the <jobs> section, you'll see:

<job name = "DeleteStaleSpamCommentsJob" 
type = "CommunityServer.Blogs.Components.DeleteStaleSpamCommentsJob, CommunityServer.Blogs"
enabled = "true" enableShutDown = "false" expirationDays="30" />

(the line breaks added by me for it to fit within the width of my blog)

If you want to know more about what a CSJob is, read Keyvan Nayyeri's excellent article.

So, I could set this job to not save those unpublished spam comments for 30 days, but for example set it to delete them after 5 days already, or why not 1 day. Smile Just edit the expirationDays parameter, save the communityserver.config, and touch the web.config. Next time the job runs it will use the new setting.

I did read Keyvan's article before, but somehow missed that setting anyway.

If you enjoyed this post Subscribe to my feed via RSS or e-mail!
Posted: Wednesday, August 30, 2006 9:09 AM by J-O Eriksson

Comments

The Wizard said:

Great Tip! :-)

# August 30, 2006 9:18 AM

Dennis van der Stelt said:

Aaaaaaaargh !!! How about this comment from Jayson Knight (and I quote:) "The default Spam Blocker settings for marking content as spam is 5 penalties ... and the content will be automatically deleted if it reaches 10 penalties." Read it here : http://jaysonknight.com/blog/archive/2006/08/20/CS-Tidbits-_2300_21_3A00_-Exploring-The-CS-Spam-Blocker.aspx How come NOTHING gets deleted? Our bloggers get SPAMMED by email because of Community Server and our spam-comments. But we _DO_ want to get an email when normal users post a comment. Is it true that comments are deleted on the 10 points mark or not?! :(
# August 31, 2006 4:28 AM

J-O Eriksson said:

Dennis,

I am not entirely sure what you're asking. But I will try to answer. There are 2 levels you can set in the spam settings. One level for when it should count as spam (let's say 5, but it's configurable), the other level is when the spam should be "auto-deleted". The difference is that on the lower level the comment is seen as "possible-spam" and will need moderation if it's going to be published. The possible-spam is not deleted by the job I talk about in this post.

The higher level, marks the comment as spam, and auto-deletes it. It doesn't delete it right away, but after the number of expirationDays that you set according to my article. All these 3 levels of comments (valid comments, possible-spam, and auto-deleted spam) can be found in the same list in the controlpanel, as you see in my picture above.

Now the other part of what I think you're asking is why should the bloggers be spammed by email because of all those spam-comments? Well, the don't have to, this can be set under /ControlPanel/Blogs/GeneralOptions.aspx for the specific blog. There is a setting there called "Do not send email notifications for comments rated as spam". Check that box for a particular blog, and the blogger should not need to be spammed by e-mail notifications.

Hope that this answer your questions?

# August 31, 2006 4:55 AM

Dennis van der Stelt said:

Will you marry me?! I LOVE YOU! SOOOO MUCH!

Hahahahaha, thank you thank you thank you thank you...

(Does this say if it answer my questions? :)

# August 31, 2006 5:16 AM

J-O Eriksson said:

Hehe, amazing that you're last comment were not classified as spam by my spam filter. ;-) Your first one was.

Glad I could help Dennis! I have set that setting myself, and it seems to work ok.

Then there's also Ken's AllCommentRSS module, that would let you lift out all notifications from your mailbox, and into your RSS reader, and be able to moderate it there.

# August 31, 2006 5:26 AM

Dennis van der Stelt said:

At this community with some beautiful members who like to blog here, we had a serious problem. Spam comments.

# August 31, 2006 5:43 AM

Community Server Daily News said:

from the editor occasional messages that don't fit anywhere else We'll be adding a weekly recap
# September 1, 2006 1:23 PM

Community Server Daily News said:

from the editor occasional messages that don&#39;t fit anywhere else We&#39;ll be adding a weekly recap

# September 1, 2006 1:25 PM

Announcements said:

Welcome to our first installment in bringing you the week's top news stories from the Community Server

# September 2, 2006 9:56 AM

Technovangelist said:

I have had a blog in one form or another for ages. In fact, if your definition of a blog is a place to

# October 31, 2006 12:52 PM

Community Server Bits said:

J-O brings us a very simple yet effective tip on how to autodelete Spam Comments, complete with his usual

# March 12, 2007 8:32 AM

kiro said:

spamers are unstopable

# March 16, 2007 1:11 AM

J-O Eriksson said:

Kiro,

I am letting your comment alone and not deleting it. Partly just because it's the first spam comment that got through my spam rules in a couple of months. The others go right in to my spam filter. And to get through you had to post a comment that won't get you any benefit at all. No links to any sites, to dirty words, no nothing. No gain for you whatsoever. You had to comply to my rules to get the comment through, and you gained nothing. Besides looking stupid cause you can't spell right.

CS Spam Rules rocks!!

# March 16, 2007 5:15 PM

Technovangelist said:

I have had a blog in one form or another for ages. In fact, if your definition of a blog is a place to say what I am up to and for others to leave comments about it, enabling a basic conversation, I have had a blog since I was living on 3rd and A in NYC

# May 11, 2008 3:55 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS