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

Posted on 2008-11-18
Last Modified: 2013-12-24

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.

Question by:hagoog
    LVL 18

    Accepted Solution

    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

    LVL 15

    Assisted Solution

    Captcha is a good way to stop this.   Here is an example for this.

    Featured Post

    Course: HTML5 Specialist

    HTML5 development skills are critical to all developers. HTML5 is the foundation to almost any development process. That's why business, design studios, development shops and other organizations need HTML5 developers. Get your foot in the door as a HTML5 specialist.

    Join & Write a Comment

    I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
    Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
    The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
    The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: : Click on Too…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now