CFAkismet - Akismet For ColdFusion
CFAkismet is an open-source ColdFusion implementation of Akismet using the Apache 2.0 license. This component should be compatible with CFMX 6.x+, and BlueDragon CFML server implementations, but it’s primarily tested on CFMX 7.02.
What is Akismet?
What is Akismet you ask? From the Akismet website:
Automattic Kismet (Akismet for short) is a collaborative effort to make comment and trackback spam a non-issue and restore innocence to blogging, so you never have to worry about spam again.
How does it work?
When a new comment, trackback, or pingback comes to your blog it is submitted to the Akismet web service which runs hundreds of tests on the comment and returns a thumbs up or thumbs down.
Reviews of CFAkismet
Current Version of CFAkismet
CFAkismet is not yet a 1.0 release, but in the meantime you can find-out how to access it via Subversion here. The only thing keeping me from releasing it as a 1.0 version is because I need some time to write some documentation for it.
How To Use CFAkismet
Until I have full documentation, here is the basic process of adding CFAkismet into your application:
- Obtain an Akismet API Key
- Grab the CFAkismet.cfc component using the aforementioned instructions
- Look at the index.cfm in the root of the CFAkismet project for a quick example of how to invoke and use the CFAkismet component
While you can use this as a final yes/no as to whether or not to allow a comment to be posted, you should probably put rejected comments into a moderation queue to be looked at later. The moderation queue should implement the submitSpam() and submitHam() methods to submit false positives and false negatives back into the Askimet service.
Bugs? Comments?
Though I’ve tested this pretty well, it has only been tested with my particular configuration (CFMX 7.02 on Windows). Bugs might exist, though several have been reported and fixed already. If you find a bug, please open tickets for bugs with CFAkismet here.