How to add additional spam injection prevention to my forms? I think CAPTCHA protection is insufficient.
Author: Edward HardinReference Number: AA-00298Last Updated: 05/24/2011 12:27 PM
0 Rating/ Voters
You can add additional spam injection protection to your forms by using a field that must be left empty for a successful submission. The nature of spam bots force them to fill out each form field. This is where we can outsmart them.
Just add some field to your form:
<input type="text" value="" name="field1" />
And add following line to your form configuration in config.php file:
required_empty_fields = field1 (Leave Empty)
And put some description to this field to tell user that it must be left blank for a successful submission.
If user fills this field by mistake, he will see an error message and is able to resubmit correctly. However bots can't read and understand this text and will stuck here.
Note
This solution works great along with the captcha feature. We do not recommend to rely on the required empty field as the only solution.