Honeypot anti-spam feature for formbuilder

  Previous article Next article  

Honeypot anti-spam feature for formbuilder

  Article optimized for CMSMS 2.x

  Author:
  Last tested in: CMSMS 2.2.2
  Last updated: 30-03-2015
  Comments: 2

In this tutorial I will show you how Velden a honeypot anti-spam feature added to a Form Builder form in CMS Made Simple. The idea is that automated web bots only look for the form fields and can't resist to add some information. As the specific field is hidden from real, human visitors you know it should never contain anything.

  How to use

Step 1: The webform

Open your form in the Form Builder Admin page and add a new field:

  • Text Input:
    Name: website
    Require a response for this Field: NOT(!) checked
    Field Validation: Doesn't match Regular Expression
    Advanced Settings tab:
    Field Alias and DOM id (CSS id) attribute: frm_website
    CSS Class for this field: website
    Validation Regex: /.+/

Test it by filling in the form and check that it does not validate when anything is filled in 'website' field. Then fill in the other field and leave 'website' empty and check that the Submission template text is displayed and the form is received by the recipient supplied in the form.


A2 Webhosting CMS Made Simple


Step 2: Hide the website field

Use some css to hide the 'website' field from the website visitor. Add to your (form) stylesheet:

div.website, div.website * {
  display: none !important;
}

The website field should now not be visible anymore.


A2 Webhosting CMS Made Simple

  Comments

  Click here to leave a comment






This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)
  « Enter the CAPTCHA code (lower case)

Your IP address will be stored on submit. I reserve the right to change or delete your response without notice!
In case of abuse your IP address will be blocked!


Can I have your attention for a moment?

Did this tutorial help you solving a problem at your (clients) website and it saved you many hours of work? Great!!
Consider buying Rolf a cup of coffee in return! [ Click here ]


  2 Comments

CMS Made Simple 2.2.2 - Tutorials, tips and tricks - CMSMS 2.2.2

Honeypot anti-spam feature for formbuilder

  Article optimized for CMSMS 2.x

  Author:
  Last tested in: CMSMS 2.2.2
  Last updated: 30-03-2015
  Comments: 2

A2 Webhosting CMS Made Simple