August 5, 2006
Filed under: Uncategorized 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.
14 Comments »
RSS feed for comments on this post. | TrackBack URI
Leave a comment
devnulled is a blog which caters to software development related issues with a bit of a pro-unix slant. devnulled has been featured on Slashdot, Digg, the Indeed Blog, O'Reilly Hacks, and del.icio.us/popular.
Brandon Harper, the author behind devnulled,
is a Pragmatic Software Engineer primarily working with Java and ColdFusion, but also dabbles in Python, Ruby, FreeBSD, and Linux. He's been
programming since age eight, professionally for over nine years, and has been been published in various industry publications and popular websites.
Brandon also enjoys music, politics, command prompts, and things with wheels a wee bit much.
EMail Subscription
Recent Entries
- A Regular Expression To Proxy Basic ColdFusion Requests
- How To Fix Sound Problems In Ubuntu 7.10 Gutsy on Dell Computers
- Getting Behind Python: Sun Hires Python & Jython Developers
- How To Display Which Processes Are Using What Ports
- Can’t Login To Newegg in Firefox? Here’s How To Fix It…
- Aaannnddd… We’re Back
- Maven: Including Axis2 Artifacts into EAR’s
- News Flash: Apple Finally Released Java 6 for MacOS X!
- Java 6 for Developers on MacOS X: SoyLatte Reaches 1.0
- Advice For Managing Your Career: 50+ Resources For Programmers & Software Engineers
- Just Installed MadKast - Blog Sharing Made Simple
- Farewell CFDJ: My Last Year on the Editorial Board in Review
- Dilbert Groks Java
- How To Stop The Creation of .DS_Store Files
- Interesting Details About the Space Shuttle Operating System
- How To Show Hidden and Protected Files in OS X Finder
- Me.dium Now Open To The Public– Announces IE 7 Support & New Widget
- Development in Mac OS X: How To Fix the Lame Default Font in Eclipse
- How To Repair User Permissions In Mac OS X
- Dell Dimension E520 With Ubuntu Linux Review

Posted By:
Link
[…] After seeing many posts in the community lately about problems with comment and trackback spam, I decided to write a ColdFusion interface to the Akismet API. I just whipped it up this afternoon and it seems to work as it should, though I’m unfortunately imperfect and I would not be surprised if I missed something, somewhere. Not to mention, I’m caged-up in the house trying to get over a cold. You can get more details about it on my CFAkismet Project Page. I’m also used to writing big applications using all of the fun OO buzzwords and not standalone components for bulk consumption, so if you have any suggestions, let me know. […]
Pingback by » Announcing CFAkismet - Stop Comment and Trackback Spam! : devnulled: a blog by brandon harper — August 5, 2006 @ 10:13 pm
I’m not sure if your intention is to keep the tag working only for CFMX 7, but you should note somewhere that it currently only supports this version due to your use of the “result” attribute in the CFC code. CMFX 6.x doesn’t support this (and I’m not sure BlueDragon doesn either, but I could be wrong on that). Great work though!
Comment by Dave Carabetta — August 6, 2006 @ 2:11 pm
Dave: I knew that CFMX 6.x didn’t support that, but BD doesn’t either? I’ll open a ticket and make a change soon to fix that.
Comment by Brandon Harper — August 6, 2006 @ 2:59 pm
Dave: The component should now work with CFMX 6.x and BD. Let me know if you find otherwise.
Comment by Brandon Harper — August 6, 2006 @ 3:44 pm
I am not sure whatever it is here or I am simply blind today, but where is the link to download the CFCs you mention, the CFAkismet? I was sort of expecting a link to a zip file which I could play around with. Can you pls. either point me to how I get the software or just send it to me via email (I assume that the Apache license is still honored on this project).
Comment by Tom — August 24, 2006 @ 5:17 pm
Tom,
If you’re familliar with Subversion, you can checkout the whole package. Otherwise, you can just load the CFAkismet.cfc file into your browser, copy and paste it into your favortie editor, save it as CFAkismet.cfc, and be ready to go.
Google code doesn’t support file releases yet, and I still need to do documentation for this to be a 1.0 release, so there currently isn’t a .zip available.
Comment by Brandon Harper — August 24, 2006 @ 10:32 pm
Love this! thanks so much man!
My blog post thanking you.
Comment by jonese — October 31, 2006 @ 1:26 pm
Brandon,
Will you post an idiot’s guide to implementing this CFC?
Also, is the code you posted for Tom, above, still up to date?
Comment by C — February 12, 2007 @ 1:47 pm
C–
I originally intended to add more documentation into the wiki at the Google Code project for this CFC, but at the time it was very buggy (and I did actually submit bugs for all of the problems I had). I’ll try and give it another try soon and see if they’ve been fixed.
Comment by Brandon Harper — February 26, 2007 @ 2:42 am
[…] CFAkismet for Coldfusion […]
Pingback by Evitar spam con Akismet - myspace - diseƱo web — March 4, 2007 @ 6:36 pm
Is the Author Email and URL required? Can they be disabled?
Comment by Brett — May 18, 2007 @ 11:17 am
I honestly haven’t tried that out Brett, so let me know what happens.
Comment by Brandon Harper — May 20, 2007 @ 9:56 pm
FYI This works without the Commenter URL. I am now using it on my blog! Very easy to use!!!! Excellent job.
Comment by rd — June 23, 2007 @ 11:22 am
[…] 3 pm, August 8th, 2006 Brandon Harper has announced the availability of CFAkismet, a Coldfusion implementation of the Akismet API. […]
Pingback by For Coldfusion « Akismet — November 30, 2007 @ 1:22 pm