AJAX
  Home arrow AJAX arrow Using Simple Checksums for Web Form Verification with Ajax
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
AJAX

Using Simple Checksums for Web Form Verification with Ajax
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 3
    2009-03-25


    Table of Contents:
  • Using Simple Checksums for Web Form Verification with Ajax
  • Review: code verification system with Ajax
  • Displaying basic mathematical sums as challenge strings
  • The Ajax application's full source code

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Using Simple Checksums for Web Form Verification with Ajax
    ( Page 1 of 4 )

    As you know, Ajax is a technology that can be used to perform all sorts of clever tasks; this includes building web forms that are less vulnerable to attacks from malicious web bots. Indeed, it’s pretty simple to develop certain mechanisms that permit the dynamic generation of verification codes via Ajax, which must be entered manually by a user before submitting an HTML form. This is the second part of a four-part series that shows you how to make your web forms safer with Ajax.

    Introduction

    Actually, building a web form checking system like this can be an instructive experience, particularly for those web developers whom need to code safer online forms without using a server-side graphic library to generate "noisy images" on the fly.

    So, if you're interested in learning how to use Ajax to construct more secure web forms, then you should take a look at this series of articles. It will provide you with an approachable guide to utilizing Ajax to create different types of verification codes, which can be incorporated into any existing HTML form with minor hassles.

    Returning to the subject discussed in the previous article, you'll recall that I used a hands-on approach to explain how to use the functionality of Ajax to build a simple code verification system. This system could be attached to any web form to protect it against automated submissions.

    This basic Ajax application was capable of generating different random strings each time a user proceeded to submit a sample online form. This same concept can be easily extended, however, for creating different types of verification codes, not just randomized values.

    Keeping this idea in mind, in the next few lines I'm going to explain how to build an Ajax-based program which will be able to display, in a predefined area within a web form, a simple mathematical sum instead of a the typical random string. Logically, users will have to enter the correct result of this operation before submitting the online form, in this way implementing an alternative security method.

    Developing this Ajax application will be an educational and fun experience, so let's get rid of the preliminaries and get started!



     
     
    >>> More AJAX Articles          >>> More By Alejandro Gervasio
     

       

    AJAX ARTICLES

    - PHP AJAX Form Validation
    - Completing a User-Defined CSS Website with P...
    - Create a User-Defined CSS Website with PHP
    - Build A Better Twitter Chat Client Than Cham...
    - Using Division Equations to Make Web Forms S...
    - Using Integer Multiplication to Protect Web ...
    - Using Simple Checksums for Web Form Verifica...
    - Protecting Web Forms with AJAX
    - Using Prototip with AJAX
    - Using Prototip
    - Using the google.load() Method with Google`s...
    - How to Handle Ajax Errors
    - Uncompressing Source Files with Google`s AJA...
    - Using the jQuery Framework with Google`s Aja...
    - Using Google`s Ajax Libraries API




    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek