Skip to content

Upgrade & Fighting Comment/Trackback Spam

Okay so I’m going to try to upgrade WordPress to 1.5.1.2. If the site goes away and/or totally gets hosed that is why. Wish me luck.

Update: Sweet. Everything is working. The comments showing up in “recent comments” isn’t necessarily a bug in SpamKarma, just an implementation quirk. What happens is spam that trackbacks and comments deemed spam are not deleted from the database, they are just flagged as spam and I suppose the plugin handles the viewing of comments on entries so that any commetn flagged as spam is not shown.

The problem comes when doing the simple “recent comments” implementation that comes standard in many templates. The code for that just grabs the last n comments from the comments table in the db. Since the spam is still in the db, just flagged, they then show up as “recent.”

it was simple enough to fix by doing the recent comments with the following code (the change is in bold):

Okay I tried to put in teh code but WP isnt' behaving with code. I'll work on that some other time. if you want to know how I did it email me (jason.borneman at the address of this blog) and I'll send you the code.

There is a sort of “purge” funcitonality in SK2 so I can go in and occaisionally clean out the spam comments from the DB. So no SK bug, just a tweak needed for recent comments.

Kudos to dr. Dave and Spam Karma 2. If you are running WordPress, I highly recommend you install this plugin to cut down on spam.

The other plugin to use to fight spam is HashCash. This one largely stops atuomated comment spammers before they even get to SK. SK is really there for manual entry spammers and trackback spammers. Together, I’ve only had one comment spam ever get through to the blog (not including the “recent comments” quirk tha thas been fixed)

One Comment

  1. Jason wrote:

    Well I think it worked (the upgrade). I also upgraded my spam killer plugin to SpamKarma 2 which looks to be a great plugin. We’ll see if that fixes my trackback problem from SK1.? of the spammed trackbacks being removed from the entries not not entirely from the DB (causing them to show up as “recent comments”)

    Friday, June 17, 2005 at 6:09 pm | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*
Creative Commons License