Peter J. Farrell has taken my open source CAPTCHA component to the next level -
You should check it out
It's highly configurable (way more than mine is), and comes with a slew of new features. His documentation is also better than mine.
I'm still going to keep my open source captcha on my site, but if you are looking for something a bit above and beyond what i wrote, definitely check out what Peter has done.
Here is the initial release of my Captcha component .
It is a reworking of the code I use on this site to output my Captcha images, into a nice CFC that has two public methods -
- captchaToFile(...) - This method writes a Captcha image defined by the arguments passed in to the file you tell it to set.
- captchaToBinary(...) - This returns binary data that can be used by cfcontent to display the generated image on the fly.
The code here is pretty much 'as is'. The CFC should be relatively self explanatory, but I have provided examples in the zip file on how to use the CFC both ways.
If you have any feedback, feel free to send me an email .