Server side scripting to stop spam bots

F

freemann

Can anyone help me with server side scripting to stop spam bots?

Running Windows 2003 IIS 6.0 with FrontPage server extension. Forms were
created using FP 2003. When form is submitted, input data is posted to a
second page that has an asp script writing data to file on server. FP form
has validation but obviously the bot is bypassing that and a blank record is
written to the file with only date and time stamp.

I'm not sure if the bot can do anything other than causing a blank record to
be written to the file, but any advise would be greatly appreciated.

Thanks,

Naomi
 
T

Thomas A. Rowe

If you have required fields that are not being completed, then in your ASP code you can check to
make sure those fields have content before a record is written..

If Len(request.form("fieldname1") > 0 Then
Field1Check = 1
End If
If Len(request.form("fieldname2") > 0 Then
Field2Check = 1
End If
If Len(request.form("fieldname3") > 0 Then
Field3Check = 1
End If

etc.

FieldCheck = FormatNumber(Field1Check+Field2Check+Field3Check)

If FieldCheck = 3 Then
..... write data to database
Else
Response.Redirect http://255.255.255.255
End If

The are other ways/options available as well, such as CAPTCHA scripts.
--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top