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.