Conditions to hide the sending button to bots doesn’t hide for real
-
Hi there,
I used a condition to hide the sending button to prevent bots and spam.
So I added a word in a jpeg and the user has to report this word in a input text, if the word is correct the sending button comes up.
Easy, right ?
But … I collected in admin notifications the word typed by users and bots, and lot of bots. I observed the right word is never typed, sometimes it’s anything else, or even empty.
So I had a look in the source code and the sending button has a class like “forminator-hidden”. With FFox, open your console (F12), select the hidden button, remove “hidden” from the class “forminator-hidden”, the button appears on the page and send, that’s it.
To be really effective the button should be NOT Written at all in source code.
So, I tried to add some JS to target the button and remove it.
With stuff like this : ” parent.removeChild(elementToRemove)”
If this JS code is added in HTML field, it doesn’t work at all, Forminator removes the code.
Then I added my JS in a “Woody Snippet” (plugin) and added its shorcode in an HTML field, JS appears in source code but still doesn’t work. (I tested my code in a simple HTML page and it works as expected)
Finally I renounced to get a protected form against bots and spam with Forminator. Cause while you can catch the button in source code bots can modify it and press “send”
+No, I don’t use Captcha neither cause it’s Google and no compliant with GDPR
I really think the perfect solution is to “remove” the button from source code while the conditions are not filled up.
Or if you have any suggestion, it will be a pleasure to read you.
- The topic ‘Conditions to hide the sending button to bots doesn’t hide for real’ is closed to new replies.