Classic ASP web page form - getting Spamed. How to stop this?


We have an order page, done in OLD ASP (not .net).  Lately we are getting lots of spam orders through the form.  Somehow something is filling out the form and submitting it with bogus info.

What would be a good way to stop this?  A captcha?  I don't know since this is not .net.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I had this problem and fixed it in a relatively low-tech way.  Just have a hidden form field, and have a Javascript function populate it onload.  Screen scrapers don't run the Javascript, so they will always leave the field blank.  The server makes sure the field is populated correctly.

This has worked for me for years.  If you have a very large site which is targeted by dedicated spammers, it will no longer work (and you would need to implement a CAPTCHA).
<body onload="document.getElementById('spam').value = 'key';">
<input type="hidden" id="spam" name="spam" value="" />

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Captcha is a good way to stop this.   Here is an example for this.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.