Solved

I would like to prevent spamming with random image

Posted on 2007-04-11
7
154 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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.
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now