Honeypot failure
-
Hello,
we have problems with the honeypot integrated in Forminator on some of our sites. Sometimes pages with few visitors (under 500 per month) get quite a lot of spam, almost daily. And this even though the honeypot is integrated.
I suspect that the problem is that bots check for the hidden input field. Another alternative would be something more dynamic, like WP Armour does. They always put a different ID in the input depending on the installation.
As a workaround I implemented the following code:
PHP
function custom_honeypot($submit_errors, $form_id, $field_data_array) { $valid = true; if (!empty($_POST['text-1'])) { $valid = false; } if (!$valid) { $submit_errors[]['checkbox-1'] = 'SPAM.'; } return $submit_errors; }
CSS
.honeypot { display: none; width: 0; height: 0; }
Since the change (1 month ago) the website owner doesn’t get any spam at all.
Would it be possible to adjust the honeypot a bit directly in Forminator? It would be nice if more people could benefit from it.
- The topic ‘Honeypot failure’ is closed to new replies.