Results 1 to 2 of 2

Thread: Spam in html form

  1. #1
    Join Date
    Jan 2006
    Posts
    170
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default Spam in html form

    I'm not sure that this is the proper place to post this problem, but if not, hopefully someone will tell me where it belongs.

    My problem is: I have an html form on my site that allows people to join our club by providing various pieces of information. Lately, I've been getting resonses containing garbage. I validate every field in the form with javascript, so I don't know how they're getting around that. The bulk of the garbage seems to be in fields which are only supposed to contain numbers (i.e. zipcode). These are checked to insure that only numbers are entered. Dispite that, the formsmail that gets generated when the submit button is clicked contains non-numbers such as web addresses.

    Can someone tell my how that happens and, more importantly, how to protect against it?

    Thanks in advance.

    Jim

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    I validate every field in the form with javascript, so I don't know how they're getting around that.
    your problem lies in the highlighted section of the quote I posted above. Javascript can be turned off and in some browsers (or if it is a bot) is disabled by default. You should consider using some sort of server side validation just to be on the safe side. In any case, another thing you could do to stop this sort of thing from happening (or at least, from getting to you) is incorporating a CAPTCHA (such as recaptcha.net or you could write your own).

    Anyways, hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. The Following User Says Thank You to thetestingsite For This Useful Post:

    Jim Weinberg (05-19-2008)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •