Preventing Automated Form Submissions

liunx

Guest
I have a guest book developed in ASP which submits a persons name, location & message to a database pending for approval before displaying on my website.

However, a lot of the submissions are SPAM!

I've tried to prevent automated submissions using DHTML where they have to tick a box before you can submit the form. However it still allows automated registrations.

So my next battle is to use somthing similar to a password verifier where your retype the same text in another field before you can submit the form. However I can't find no decent scripts.

Could you help me incorporate a similar script into this webpage:




<form ACTION="<%=MM_editAction%>" method="POST" name="form_guestlist">
<input type="hidden" name="CDE">

<div align="center">

<table border="0" width="100%">

<tr>

<td width="25%" align="right"><font face="Verdana" size="1">Name:</font></td>
<td width="73%" colspan="3"><font size="1">
<input type="text" name="txt_Name" size="20" style="font-family: verdana; font-size: 8pt; border: 2 solid #000080">
</font><font face="Verdana" size="1">From: </font><font size="1">
<input type="text" name="txt_From" size="15" style="font-family: verdana; font-size: 8pt; border: 2 solid #000080"></font></td>
</tr>

</center>

<tr>

<td width="25%" align="center" valign="top">

<p align="right"><font face="Verdana" size="1">Message:</font>
</td>
<td width="58%" align="center" colspan="2">

<p align="left"><font size="1">
<textarea rows="3" name="txt_Message" cols="36" style="font-family: verdana; font-size: 8pt; border: 2 solid #000080"></textarea>
</font>
</td>
<td width="16%" align="center" valign="bottom">

<p align="center"><br>
<font size="1" face="Verdana">
</font></td>
</tr>

<tr>

<td width="25%" align="center" valign="top">

<font size="1">
<input name="CDE1" size="12" style="font-family: Verdana; font-size: 8pt; border: 1px solid #FFFFFF; ; color:#0000FF; font-weight:bold; float:left; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px" value="TOMLAN99"></font></td>
<td width="31%" align="center" valign="top">

<p align="left"><font size="1" color="#FF0000">Please enter the code on the left
into the box on the right:</font></td>
<td width="23%" align="center" valign="top">

<font size="1">
<input name="CDE2" size="12" style="font-family: verdana; font-size: 8pt; border: 2 solid #000080; float:left"></font></td>
<td width="16%" align="center" valign="bottom">

<font size="1" face="Verdana">
<input type="submit" value="Submit" style="font-family: verdana; font-size: 8pt"></font></td>
</tr>

</table>
</div>
<input type="hidden" name="MM_insert" value="true">
</form>I believe what you are looking for is an image verification called CAPTCHA.
<!-- m --><a class="postlink" href="http://en.wikipedia.org/wiki/Captcha">http://en.wikipedia.org/wiki/Captcha</a><!-- m -->

Heres an example of a script written in ASP.
<!-- m --><a class="postlink" href="http://www.hotscripts.com/Detailed/54166.html">http://www.hotscripts.com/Detailed/54166.html</a><!-- m -->

You can probably find more on hotscripts.comThanks for that mate... Ive looked the the examples and I don't know how that would submit to my database...

It just submits to the same page - if I change it it doesn't verify the input was correct.

At the moment my form does this:
<form ACTION="<%=MM_editAction%>" method="POST" name="form_guestlist">Try this <!-- m --><a class="postlink" href="http://ajax.asp.net/ajaxtoolkit/NoBot/NoBot.aspxcaptcha">http://ajax.asp.net/ajaxtoolkit/NoBot/NoBot.aspxcaptcha</a><!-- m --> or other triggering system. its always nice to uses symetric key using RS4 to encode it and post the text on the image.
 
Back
Top