Oct 8th, 2011, 8:10 AM
(This post was last modified: Oct 8th, 2011, 9:58 AM by designandetc.)
Ben,
I upgraded to the latest version of Formtools (2.1.3) and the latest version of the Submission Pre-Parser module (1.1.1) and after creating a couple rules, the spam has stopped!
First:
I am using the "formtools_ignore_submission" key.
Here is my rule:
My "honeypot" field is coded like this:
Notice that i used "name" as my field name. I figured the bots would see that as an important field to fill in.
Second:
I changed the names of my fields to their "backwards-selves". i.e. (city = fytic, and email = fliame). This was to avoid bots looking for specific field names from entering data in my fields.
Last:
I made and additional rule in the Submission Pre-Parser module that will ignore any blank submissions. This is for two reasons. First, because if a visitor or a bot were to submit my form without filling in any field, I'd get a blank submission. Second, my initial problem was that even with the above Submission Pre-Parser rule, Formtools was not recording a bots submission but it was sending a completely blank email.
Here is the second rule:
Thanks for your help and I hope this will help someone else avoid spam bots submitting to their form!
-Paul
I upgraded to the latest version of Formtools (2.1.3) and the latest version of the Submission Pre-Parser module (1.1.1) and after creating a couple rules, the spam has stopped!
First:
I am using the "formtools_ignore_submission" key.
Here is my rule:
PHP Code:
if (!empty($_POST["name"]))
$_POST["form_tools_ignore_submission"] = true;
My "honeypot" field is coded like this:
PHP Code:
<div class="honey">
<input type="text" name="name" value="">
</div>
.honey{display:none;}
Notice that i used "name" as my field name. I figured the bots would see that as an important field to fill in.
Second:
I changed the names of my fields to their "backwards-selves". i.e. (city = fytic, and email = fliame). This was to avoid bots looking for specific field names from entering data in my fields.
Last:
I made and additional rule in the Submission Pre-Parser module that will ignore any blank submissions. This is for two reasons. First, because if a visitor or a bot were to submit my form without filling in any field, I'd get a blank submission. Second, my initial problem was that even with the above Submission Pre-Parser rule, Formtools was not recording a bots submission but it was sending a completely blank email.
Here is the second rule:
PHP Code:
if (empty($_POST["feman"]) && empty($_POST["fliame"]) && empty($_POST["fenohp"]) && empty($_POST["fegassem"]))
$_POST["form_tools_ignore_submission"]= true;
Thanks for your help and I hope this will help someone else avoid spam bots submitting to their form!
-Paul