August 5, 2006

Post Meta InformationPosted By: Brandon Harper
Post CategoriesFiled 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:

  1. Obtain an Akismet API Key
  2. Grab the CFAkismet.cfc component using the aforementioned instructions
  3. 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 »

  1. […] 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

  2. 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

  3. 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

  4. 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

  5. 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

  6. 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

  7. Love this! thanks so much man!
    My blog post thanking you.

    Comment by jonese — October 31, 2006 @ 1:26 pm

  8. 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

  9. 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

  10. […] CFAkismet for Coldfusion […]

    Pingback by Evitar spam con Akismet - myspace - diseƱo web — March 4, 2007 @ 6:36 pm

  11. Is the Author Email and URL required? Can they be disabled?

    Comment by Brett — May 18, 2007 @ 11:17 am

  12. I honestly haven’t tried that out Brett, so let me know what happens. :)

    Comment by Brandon Harper — May 20, 2007 @ 9:56 pm

  13. 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

  14. […] 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

RSS feed for comments on this post. | TrackBack URI

Leave a comment

XHTML ( You can use these tags): <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> .