I have started getting massive amounts of comment-SPAM so last night I toggled off comments and trackbacks for all existing posts using a combination of regex and Perl. This seems to have stopped the flooding. I’m looking into two more permanent solutions:
- Using a hack to Pebble by Glen Smith where the user has to answer a simple math problem before submitting a comment.
- Leaving comments open and having a scheduler (such as Quartz) toggle the possibility of comments off after a week or so.
While option 1 is by far the easiest to implement it will mean changing the codebase for Pebble itself. Option number two could be implemented by using a ContextListener which would mean that the existing codebase could be left unaltered (simply an extra jar, a class and a small change to web.xml).
I’m leaning towards option number 2 for now.