on the fly. Just create a bunch of them once. Then associate the file
name with the correct answer in the DB. Each time you display a file to
the user, generate another unique id mapping the particular display to
that particular user with a record from the other table that has the
filename and correct answer. Display the image to the person and hide
the unique id (in session or hidden form). Then when submitted, check
that session to find out which image was passed and compare their
response with the correct string. Remove the record from the DB so they
can't submit multiple times with the same info. Just my thoughts, there
may be an easier way.
John
-----Original Message-----
From: Rick Root [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 4:11 PM
To: CF-Talk
Subject: Re: cfmx and CAPTCHA
Whittingham, P wrote:
>
> How would one provide a cfmx-only solution (no .Net) for a 'CAPTCHA'
> solution. Any ideas would be appreciated.
This has been posted and discussed many times since I've been on the
list.
I have yet to see anyone suggest specifics on how to do it though.
It shouldn't be too hard to use JAI or ImageMagick or something similar
though to generate an image with text using a funky font then overlay
the image with another image to confuse OCR software...
I think you'd store the image text in a database, and pass some kind of
ID in the form as a hidden field, then on submission, look for that ID
in the database and compare the text in the database to what the user
typed in.
Again, it's all theoretical. Maybe someday, someone will write such a
tool and share with all of us how they did it.
- Rick
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

