Solved

I would like to prevent spamming with random image

Posted on 2007-04-11
7
155 Views
Last Modified: 2013-12-24
Hi, I would like to prevent spamming on my coldfusion form. I see that some sites like Yahoo.com, before a user can click submit to create an account, they have to enter some random text from a randomly generated image before clicking.

Does coldfusion have some api, tutorial, or technique that I can create this random image, any ideas ?

Thank you so much,
noijet
0
Comment
Question by:noijet
  • 4
  • 3
7 Comments
 
LVL 8

Expert Comment

by:pmascari
ID: 18890398
Those are called CAPTCHAS.  Here are a couple of links to some CFCs built for them:

http://www.alagad.com/index.cfm/name-captcha
http://www.compoundtheory.com/?action=captcha.index
0
 

Author Comment

by:noijet
ID: 18890716
Hi pmascari, thanks so much for your reply!  I will try to use the second link 'compoundtheory.com' since it is free!  My remaining question is:
So now I guess the next step for me is to create a random text --> store text to a session var -->  use the captcha.cfc to generate a image with that text.  Now on the form, user would enter in the text --> In my next cf page, I compare entered user text and the text in my session var --> If there is a match, success --> If no match, I return failure.  
Is this a good way to go about this?

Thanks so much,
noijet
0
 
LVL 8

Expert Comment

by:pmascari
ID: 18890759
Sounds good.  There should be no way a spam bot could find out the var stored in your session.  You may want to build in a feature to allow the user to "switch" the image in case they are having trouble reading it, themselves.
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:noijet
ID: 18891169
Hi pmascari, I'm currently going to try out the compoundtheory.com, I'll get right back to you once I have a sample for my site.

Thanks so much,
noijet
0
 

Author Comment

by:noijet
ID: 18924835
Hi pmascari, I finally got this code put into my app, it works so far!, thank you, before I close this app, I see that some sites, use a audio button to "say" the captcha, do you know any samples about this?

Thanks so much,
noijet
0
 
LVL 8

Accepted Solution

by:
pmascari earned 125 total points
ID: 18925110
Sorry, I don't know any samples of this.  My thinking is that would be a feature of the CAPTCHAs themselves.  For instance, I found this article about Google CAPTCHAs:

http://www.accessibilityblog.com/2006/04/11/google-releases-audio-captcha/

Sorry I couldn't be more help with that.
0
 

Author Comment

by:noijet
ID: 18925637
Hi pmascari, you have been super help already, thanks again for your help !

noijet
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question