So a few days ago I finished the first plugin for SpamMonkey,
SpamMonkey::Test::check_uridnsbl. SpamAssassin people
already know what that does - looks up URIs in a message in a DNS blacklist.
This is basically what I wanted to stop comment spam on the blog.
And as of now, SpamMonkey is doing what I intended it to do - it's a SpamAssassin clone which can filter other types of spam, such as comment spam. It's in operation now on this very Bryar blog. The code to make it connect to Bryar was very simple:
use SpamMonkey;
my $sm = SpamMonkey->new;
$sm->ready();
my $res = $sm->test($params{content});
if ($res->is_spam) {
$self->report_error("I think you're a spammer, because your comment: ".
join("\n", $res->describe_hits));
}
That should deal with the spammers... for the moment.
Full version - 4 Comments