Important alert: (current site time 7/15/2013 10:27:03 PM EDT)
 

winzip icon

_Pure ASP method to prevent automatic form submissions

Email
Submitted on: 3/31/2005 5:20:11 PM
By: Behrooz Sangani  
Level: Intermediate
User Rating: By 9 Users
Compatibility: ASP (Active Server Pages)
Views: 16716
author picture
(About the author)
 
     A pure ASP method to generate dynamic images, without any components and very fast indeed. This example prevents automatic form submission by robots. If your web site is being overwhelmed with spam, automatic registrations or automatic forum submissions etc. then this script can solve this problem by inserting pictures in your HTML form that only a human can recognize. Download to read full article...

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

4/1/2005 7:19:52 PMBrian Battles WS1O

I tried this, but the image numbers I'm getting are coming out as

131979.7774928808
247038.3052946925

etc...

???


(If this comment was disrespectful, please report it.)

 
4/1/2005 7:21:30 PMBrian Battles WS1O

Oops, wait, never mind, I had another file with the same name in my test folder, sorry! (ahem) It works OK now...
(If this comment was disrespectful, please report it.)

 
1/13/2006 6:00:00 PMUnicørn

well done!
This maybe interesting to you : http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=9252&lngWId=4
(If this comment was disrespectful, please report it.)

 
1/14/2006 8:07:01 AMUnicørn

I Know this seems a bit professional but it's great :: http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=8395&lngWId=4
(If this comment was disrespectful, please report it.)

 
2/15/2006 9:40:26 AMShane

Nice concept
(If this comment was disrespectful, please report it.)

 
5/26/2006 1:26:07 AMhabib

Hi how are you.You did a good job
(If this comment was disrespectful, please report it.)

 
7/1/2006 6:30:18 AMBarry Pranklin

Very nice work! One thing people should keep in mind when checking. The can "submit" his own form so would you do is you go:

If Session("ImageNo") = Request.Form("ImageField") Then
DO WHATEVER
Else
Say NO
End If

This will not work because both

Session("ImageNo") AND
Request.Form("ImageField")

will be empty so they would match and the spammer gets what he wants. What you need to do is:

If Session("ImageNo") = Request.Form("ImageField") AND Session("ImageNo")<>"" AND Request.Form("ImageField")<>"" Then
DO SOMETHING
.
.
.
.

Hope this helps.
(If this comment was disrespectful, please report it.)

 
8/4/2006 12:07:34 AMMars

I try to consider your style. Nice effort. I have implemented same in my website with my own javascript methods, still doesnt know how effective it is. Try to visit www.mellorito.org/contact.asp

(If this comment was disrespectful, please report it.)

 
12/16/2006 12:05:20 PMMichael

Excellent work !!!
Thank's
(If this comment was disrespectful, please report it.)

 
1/4/2007 6:59:59 PMbob

nice approach .. god job
(If this comment was disrespectful, please report it.)

 
3/3/2007 4:55:11 AMDennies

work fine in IIS but not in Chillysoft ASP. Have you got any work around for that
(If this comment was disrespectful, please report it.)

 
5/14/2010 5:27:50 AM

Good job......

(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.