Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

form spam

Options
  • 18-11-2009 12:30pm
    #1
    Closed Accounts Posts: 38


    Hi, does anyone know the best way to prevent or stop form spam?thanks


Comments

  • Closed Accounts Posts: 263 ✭✭HandWS LTD


    By using a captcha (an image to verify the form with hidden email) or by encoding your email address that is visable to your viewers eyes.


  • Registered Users Posts: 21,257 ✭✭✭✭Eoin


    Be careful with CAPTCHA though, some of the images that are generated are a pain to read and can piss off people. If using CAPTCHA could turn off potential customers, then I'd think twice about it.

    Most spam bots tend to populate all values in a form, to make sure that all required form fields are populated, and therefore there won't be any validation errors.

    So you could create a hidden form field that should never be populated. When your form is submitted, you check to see if that field has a value. If it does, then it's spam as a normal user would never have the opportunity to enter a value there.

    Now, I'm not sure if the field needs to be a standard hidden form field, or if you need to use CSS to hide it. If it's the latter, then you'd want to consider what would happen if a user with no or limited CSS support is using the page.


  • Closed Accounts Posts: 9,700 ✭✭✭tricky D


    eoin wrote: »
    So you could create a hidden form field that should never be populated. When your form is submitted, you check to see if that field has a value. If it does, then it's spam as a normal user would never have the opportunity to enter a value there.

    Now, I'm not sure if the field needs to be a standard hidden form field, or if you need to use CSS to hide it. If it's the latter, then you'd want to consider what would happen if a user with no or limited CSS support is using the page.

    Remember to set the tabindex to skip as required, if you care enough about that.


  • Registered Users Posts: 21,257 ✭✭✭✭Eoin


    Good point, and also make sure it doesn't have a common name and/or ID that a form completer toolbar might automatically populate.


  • Closed Accounts Posts: 263 ✭✭HandWS LTD


    There are problems with captcha. However, there is a good free one online that also has 2 other option's. 1) get a new image and 2) hear the words (for blind people). And come with a validated script, recaptcha.net.

    When i first did my forms i avoided captcha for those reasons described in the above posts. But with recaptcha.net it is a much better option if you want to have captcha.


  • Advertisement
Advertisement