Using Captcha - No JavaScript |
Using CAPTCHA techniques to stop spam
This page is an (almost) exact duplicate of CAPTCHA except all JavaScript (relevant to the form) has been removed - simulating a situation where JavaScript has been disabled. Some of the wording may be confusing since it implies the JavaScript is present.
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 http://en.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.
This page shows what happens when JavaScript is disabled. CAPTCHA is a JavaScript enabled version. In practice, the disabled version would be the better method.