-
- 460 Posts
Keen to use a math style of question to prevent spam on a contact form. Anybody been able to do this with eForm and if so, how? Am aware of SPForm but I’ve spent a bit of time configuring eform (with additional functions, etc) so would prefer to stick with it for the time being.
Mostly harmless.
It shouldn’t be difficult to port SPForm’s math check function; I used their dummy empty form field (moved off the viewport with extreme CSS) quite easily, using this snippet and a parameter &eformOnValidate=`checkField`.
<?php
function checkField(&$fields,&$vMsg,&$rMsg) {
if(!empty($fields['Last__Name'])) {
return false;
} else {
return true;
}
}
?>
-
- 460 Posts
OK, tabbing through the form fields is interesting as the focus goes missing for that field. Is there any way of skipping that input field and automatically forcing to the next field? And if so, will this aid the spambots to miss the decoy field?
Mostly harmless.
-
- 460 Posts
Would the above solution for tabindex cause spambots to skip that field I wonder?
Mostly harmless.
I doubt it; I did that on my site a long time ago and I haven’t gotten any form spam at all.
Actually, taking a look at my tpl, I used a tabindex of 50 for that field. That seemed to be a sufficiently ridiculous number that shouldn’t ever cause a problem.
-
- 145 Posts
Hi Susan. I hope you're still tracking this three year-old item. I used the somewhat standard empty field honeypot and it has worked very well for me for a couple years now. Your help in another thread got it working for me.
In this thread you commented that you made the honeypot field invisible by having CSS move it off the viewport. My way of making it invisible was to use 'display: none'.
I have some unwanted spambot activity from time to time and was wondering if some spambots are hip to 'display: none' and whether I would do better with CSS that located the field off the viewport.
Will that produce a better result for me Susan?
Thanks again for your help ... Sam