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. I have not touched this software since I originally wrote it, but I don’t see any reason why it wouldn’t work on modern implementations of CFML servers.
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 basically a 1.0 release, though it’s API was simple enough that I never really versioned it. The project was originally hosted on Google Code but is now located at GitHub (CFAkismet git repo)
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
- Pull the source from the CFAkismet GitHub repo
- Grab the CFAkismet.cfc component from the source code
- 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 Akismet service.