Bruno Miranda's Notebook

Personal Blog about Ruby on Rails, XHTML, CSS, and Design

Have you ever wondered how to quickly implement captcha functionality?

Captchator is a hosted free service that lets you embed an image tag on your site. You then submit the session id and the user input which is verified and the result is returned to you. You can use the result to either allow or disallow the user to continue on.

  1. Display the captcha image on your website.

  2. Create or modify an existing form with a text field to send the captcha answer to your script.

  3. Your script needs to check the submitted captcha answer for correctness. To do so, it loads the following URL from the Captchator server: http://captchator.com/captcha/check_answer/$yoursessionid/$answer

  4. If the answer is correct, the result is “1”, if not, it is “0”.

And you are done.

For more information visit Captchator.com

Comments: 0 (view/add your own) Tags: captcha