IDblog ... an information design weblog

July 25, 2004
More on blog spam

For quite a while, I've been moderating comments as a way to deal with blog spam (here are the the steps I followed back then).

This has worked relatively well, except for the case where you get auto-spammed...where someone posts tens or hundreds of a spam at the same time. So, what I've done is modify the version of mt-comments-pending.cgi that David Raynes wrote to do two things:

  1. Swap the order of the "Deny" and "Allow" buttons. This way, if you are deleting a bunch, you don't have to move the mouse...the button comes up in the same location for each entry.
  2. Add a "Deny All" button at the top. Clicking this removes all the pending comments.

You can find my version of mt-comments-pending.cgi here (saved as mt-comments-pending.txt). I also recommend that you check out Elise's great spam tutorial for other ways to get a handle on blog spam.

Comments

Re-naming your comments script, and rebuilding all pages goes a long way to cutting out the spam bots. Forcing a preview (removing the submit button) helps too.

MT 2.661 helps by cutting out the repeated attempts, and MT Blacklist sniffs out a good number as well.

I've taken a completely different approach from Elise and others by making all comments entered via a JavaScript pop up form. The key is modifying the JavaScript function for opening the comment posting window that dynamically creates the correct call to the CGI by concatenating it when called- this way there is no auto harvestable URL for the comments script, e.g.

function noSpamComments (comment_id) {
window.open("http://www.yourdomain.org" +"/cgi-bin/mt/" + "my-renamed-comment-script.cgi?e" + "ntry_" + "id=" + comment_id, 'comments',
'width=480,height=480,scrollbars=yes,status=yes');
}

Hate to jinx, but I have had zero spam in several months.

-- Posted by on July 26, 2004 01:04 AM
Post a comment
Note: Your comment will be reviewed prior to posting to minimize comment spam. Management regrets the inconvenience!


IDblog is Beth Mazur tilting at power law windmills. A little bit Internet, a little bit technology, a little bit society, and a lot about designing useful information products. Send your cards and letters to .

search this site
archives
categories
key links
groups
about moi
feeds
amphetadesk
rdf
xml
gratuitous right-nav promos


(pdf)




Creative Commons License; click for details

Powered by Movable Type