Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Hi designandetc,
Are you using the "form_tools_ignore_submission" key, to indicate that you want to ignore the submission? If so, that may well be the cause: there was an issue with that not being recognized properly.
If not, could you post your Submission Pre-Parser rule content (just the salient parts of it, if it contains sensitive info) so I could take a look?
Thanks!
- Ben
Posts: 3
Threads: 1
Joined: Oct 2011
Reputation:
0
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:
PHP Code:
<?php
if (!empty($_POST["name"]))
$_POST["form_tools_ignore_submission"] = true;
My "honeypot" field is coded like this:
PHP Code:
<?php
<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:
<?php
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