Skip Navigation

Anti-Spam using Captcha

Tags: Forms
File Author Send email Website
2008080405 Ronx to Ronx www.rxs-enterprises.org

Reduce Spam using CAPTCHA

Using CAPTCHA techniques to stop spam


Note:  This form does not submit any data to anywhere.  It is for demonstration purposes only.

This form uses both FrontPage JavaScript validation and server side scripting to check the Captcha device.  The client side (JavaScript) check is not effective if JavaScript is disabled.

The JavaScript validation checks that the text box near the image contains the digits depicted in the image.  This check will fail if JavaScript is disabled, as is the case with some spambots.  A more effective method is to validate the field on the server.  This page emulates Disabled Javascript.

Note that using an image has accessibility issues, unless an alternative (not used here) is provided for those users with images disabled (screen readers etc.)

See wikipedia.org/wiki/Captcha for more information.


This example uses a single image to determine if the form-filler is human or machine.  If the digits shown by the image are entered incorrectly, the message is not sent.  In this demonstration, if the digits are wrong, an alert is given - but, in a "real" form, unlike here, no indication of failure should be given to the user.

This page shows what happens when JavaScript is enabled.  JavaScript disabled version


Comments

Subject

Comments

Contact Information

Name

Email

Miscellaneous

security-code

What numbers do you see in the above image?

Search

Advanced Search