Search…

X3 Photo Gallery Support Forums

Search…
 
felixberner
Topic Author
Posts: 3
Joined: 19 Mar 2019, 12:36

Contact Form Spam and Bot protection

11 Jan 2022, 04:02

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?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Contact Form Spam and Bot protection

11 Jan 2022, 04:42

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.
 
felixberner
Topic Author
Posts: 3
Joined: 19 Mar 2019, 12:36

Re: Contact Form Spam and Bot protection

11 Jan 2022, 04:52

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 ;)
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Contact Form Spam and Bot protection

11 Jan 2022, 05:17

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 ...
 
felixberner
Topic Author
Posts: 3
Joined: 19 Mar 2019, 12:36

Re: Contact Form Spam and Bot protection

11 Jan 2022, 05:35

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 ;)
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Contact Form Spam and Bot protection

11 Jan 2022, 05:58

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