Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Spam email coming from forms

Status
Not open for further replies.

csiwa28

Programmer
Apr 12, 2001
177
I have a simple HTML form (name, address, email, etc) and the results of the form are emailed to me. Recently, I've been receiving a lot of emails from the form, but when i look at the answers they're junk. Sometimes jumbled letters and sometimes advertisements. Is there any way to prevent this from happening? I even tried using HTTP_REFERER so that my ASP page that sends out the email won't process unless they visit the form first.
 
Have the letters in 0-9 and use a photo editing program to distort them. Display them and only submit the form if the user types in the correct number.
 
So kind of like ticketmaster.com? They have to type in what's in the box before they can submit right?
 
What about using server side rules that you can change at any point?

1. Think of a random number eg 1234
2. Display the 4th, then 3rd then 2nd then 1st number eg 4321
3. The user enters what they see
4. The number entered is then re-ordered 4th, 3rd, 2nd, 1st - eg 4321 becomes 1234
5. Compare this to the number in step 1.

You could also write something so the re-arranging used in steps 2 and 4 was random every time.
 
Thanks to you both for the info. I'll try these out and hopefully the spam will stop. Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top