phpSnatch – Fighting Spam

Sat down for a couple of hours and hacked this together: phpSnatch. It’s a Content Spam Filter, designed to scan e.g. blog comments, forum posts, wiki-entries and assign them a spam value, which the coder then can implement a reaction to (e.g. a block, notification, move to moderation queue or something completely different). It uses the almighty SpamAssassin for scanning and assigning Spam Points. It works by creating a temporary mail file (yes, a simple mail-file), which SpamAssassin then scans and reports back on. The output from SpamAssassin is then parsed by phpSnatch and can easily be handled by any PHP script.

A demonstration of this early pre-alpha-beta-unstable-rev9 non-release can be found at http://penguins.linux.dk/phpSnatch/test.php where you can try entering some values and have them estimated. The source code for the scanning process can be seen at http://penguins.linux.dk/phpSnatch/scan.phps.

As you can probably see it’s very simple to use, but things might be a bit unstable here in the beginning, so of course, there’s absolutely NO WARRANTY should you choose to use it. The author takes ABSOLUTELY NO RESPONSIBILITY FOR ANYTHING.
It’s free as in speech AND as in beer, so feel free to do whatever you want with it, just don’t blame me if something doesn’t work as expected or if it screws up anything.

About Anders K. Madsen

Creator and administrator of Lillesvin Networks. Bachelor of Linguistics and Cognitive Semiotics at the University of Aarhus, web developer, Ruby programmer, author of phpCF and amateur musician. Catch me on mail: madsen@lillesvin.net, Twitter: @lillesvin, or Google Talk: lillesvin@gmail.com, if you want to get in touch.
This entry was posted in Computers, Lillesvin Networks, PHP, Programming. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>