Form to Email probe prevention with Captcha and JS form validation. Print
Submit Cancel
Email this article

Close

You are here: Home > Email Support > Form-to-Mail Scripts

If you are experiencing bogus data being submitted through your form to mail, it could be a result of a spammer who is ‘probing’ the form-to-email script on your website to determine whether it is vulnerable to abuse.

If your form-to-email script is publicly accessible, there is unfortunately very little that can be done to prevent these probes. The web server hosting your site can unfortunately not distinguish between the spam probes and a legitimate form submission. Once the spammer realises that your form-to-mail script is not vulnerable, they will move on and the mail you receive from these probes should cease.

The form to mail options provided by Hetzner are secure.

One way to reduce probing of your forms is a solution that has been developed by the CAPTCHATM Project. The CAPTCHATM is a program that can generate and grade tests (images of text/numbers) that most humans will read/pass and most current computer programs will fail. For example, humans can read distorted text, but current computer programs can’t.

For implementation and examples code, please refer to the following URL:
http://code.google.com/apis/recaptcha/docs/php.html

Another way of limiting these form-to-email probes, is to implement form validation in your HTML code. This can be done relatively simply with Javascript. Please see the below links for more information on using Javascript to validate forms:

http://elated.com/articles/form-validation-with-javascript/
http://www.javascript-coder.com/html-form/javascript-form-validation.phtml

Was this information helpful?

Yes No

Thank you for your feedback
We are delighted to find that our article resolved your query.

Thank you for your feedback
We will resolve your query as soon as possible.

Please take a few moments to comment on your unresolved query. Simply tell us what your problem is. We guarantee that we'll get back to you within two hours (during office hours) in response to your query.


  Partially resolved    Unresolved
Enter your query here:
Your name:
Your email address:
Contact number:
Customer number or domain name:
 
Preferred contact method: Email     Call me
Please enter the text in the picture below into the text box:
CAPTCHA Image:
ID Number:
 
  • Hosting for Beginners

    Step-by-step guide to hosting with Hetzner.

    VIEW NOW
  • Application Tutorials

    Use our installation guides to get up and running.

    VIEW NOW
  • Login Now

    Our award winning proprietary control panel empowers customers to manage their hosting environment.

    Take the Tour
  • Contact Us

    support@hetzner.co.za

    Phone: 0861-0861-08
    Fax: 0861 0861-09
    Contact Us