Page 1 of 1
Contact Form Spam and Bot protection
Posted: 11 Jan 2022, 04:02
by felixberner
Hello,
I urgently need a SPAM-FILTER or a bot protection for the contact form. Can Google recaptcha be integrated or another security mechanism, such as solving a small math problem, like here:
https://www.weinstrasseadolph.de/kontakt/
This would be really urgent - can this be implemented quickly?
Re: Contact Form Spam and Bot protection
Posted: 11 Jan 2022, 04:42
by mjau-mjau
Sorry, but may I ask in what way this is urgent? Are you receiving bot-based spam? X3 already implements strong anti-bot mechanisms in contact forms. Of course, you cannot stop human spammers, and Google recaptcha doesn't solve that. Never seen any bot send spam on X3 contact forms.
Re: Contact Form Spam and Bot protection
Posted: 11 Jan 2022, 04:52
by felixberner
I now use "photo.gallery" also for web design clients - as I can basically change everything visually using custom css - but my client insists on some visual bot protection - for example a math problem to solve or some other kind of barrier.
It would be great if it is possible to implement this if necessary?
1000 thanks and sorry for the private messages ;)
Re: Contact Form Spam and Bot protection
Posted: 11 Jan 2022, 05:17
by mjau-mjau
You should tell your clients that they should request visual anti-bot protection AFTER they get one (or more) emails from bots. After all, the emails will only go TO them and not TO their website visitors. Why should the visitor have to fill anti-bot forms if it's not necessary? Even latest Google reCaptcha includes an "invisible" version that triggers on user-events (like X3's built in contact form anti-bot protection):
https://developers.google.com/recaptcha/docs/invisible
If you still need it, it can be added with custom javascript. I would need to look into it ...
Re: Contact Form Spam and Bot protection
Posted: 11 Jan 2022, 05:35
by felixberner
You would make me a great joy - if you could program me something like that - for that I get you new users, who always buy the professional license from you ;)
Re: Contact Form Spam and Bot protection
Posted: 11 Jan 2022, 05:58
by mjau-mjau
Ok. Keep in mind, to use Google recaptcha, you need to sign up for an API key pair with your Google account, which will be used in the recaptcha script. See docs:
https://developers.google.com/recaptcha/intro
Once that is done, we will follow the docs here to recaptcha into the contact form:
https://developers.google.com/recaptcha/docs/display