Integrating GDPR-Compliant Math CAPTCHA into MB Frontend Submission
Support › MB Frontend Submission › Integrating GDPR-Compliant Math CAPTCHA into MB Frontend Submission
- This topic has 4 replies, 2 voices, and was last updated 1 week ago by
Peter.
-
AuthorPosts
-
June 2, 2025 at 5:42 PM #48352
pluginoven
ParticipantI’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!
June 3, 2025 at 9:34 PM #48363Peter
ModeratorHello,
I'm afraid that there isn't a way to add a custom captcha to the frontend submission form, only Google reCaptcha is supported.
I will inform the development team to consider supporting an option to add a custom captcha to the frontend form.Thank you.
June 6, 2025 at 5:14 PM #48387June 7, 2025 at 5:13 PM #48402pluginoven
ParticipantMeta Box Math CAPTCHA
A standalone WordPress plugin that adds a privacy-compliant Math CAPTCHA field type to the Meta Box ecosystem. This plugin provides a secure, AJAX-validated Math CAPTCHA that works seamlessly with both backend and frontend forms, including those created with the Meta Box Frontend Submission addon.1. Install the plugin: https://github.com/baden03/mb-math-captcha
2. Add a math_captcha:$meta_boxes[] = [ 'title' => 'Contact Form', 'id' => 'contact_form', 'fields' => [ // ... your other form fields ... [ 'id' => 'math_challenge', 'name' => 'Are you human?', 'type' => 'math_captcha', 'save_field' => false, // Important: prevents saving the value 'required' => true, ], ], // Add the validation rule for the captcha 'validation' => [ 'rules' => [ 'math_challenge' => [ 'math_captcha' => true, ], ], ], ];
June 9, 2025 at 10:25 PM #48412Peter
ModeratorNice! Thank you for sharing.
-
AuthorPosts
- You must be logged in to reply to this topic.