I’m currently using MB Frontend Submission and noticed that it supports Google reCAPTCHA v3. However, since reCAPTCHA involves third-party data processing, it’s not considered GDPR-compliant in many jurisdictions without prior user consent.
The Goal
We’d like to implement a lightweight, localized Math CAPTCHA (e.g. “3 + 5 = ?”) as a privacy-friendly alternative to protect our frontend forms from spam.
What I’m Asking
Is there already an existing or recommended best practice to integrate a custom Math CAPTCHA with the MB Frontend Submission forms? Ideally, we’d like to align with how reCAPTCHA is currently integrated.
What We’re Considering
Since the plugin doesn’t currently provide native support for alternate CAPTCHA types, we’re evaluating the following approaches:
- Custom Meta Box Field: Add a custom math_captcha field directly to the form and validate it using the rwmb_frontend_validate hook.
- Extend Shortcode Arguments: Add new arguments to mb_frontend_form (e.g., math_captcha=true) and append a CAPTCHA challenge and validator based on this flag, similar to how recaptcha_key and recaptcha_secret are used.
Implementation is Feasible
Implementing a Math CAPTCHA manually is relatively straightforward (either via theme functions or a small plugin), but we’d like to make sure we’re using the cleanest and most future-proof method that integrates well with the Meta Box ecosystem.
Thanks in advance for any guidance or suggestions!