reCAPTCHA
Protect your Comfyform submissions from spam and automated abuse with reCAPTCHA. Comfyform currently supports reCAPTCHA v2, including both the visible “I am not a robot” checkbox and the invisible reCAPTCHA that works in the background. Plans for integrating reCAPTCHA v3 are also underway, which will provide a score-based verification system.
Here’s a step-by-step guide to implementing reCAPTCHA v2 for your forms.
Step 1: Register Your Site with reCAPTCHA
Before you can implement reCAPTCHA security in Comfyform, you must register your site with the reCAPTCHA service. If you’ve already registered your website, you can skip to the second step.
- Visit the reCAPTCHA website.
- Sign in with your Google account if you’re not already logged in.
- Provide the label for your reCAPTCHA (e.g. My Super Website).
- Select “Challenge (v2)” and the type you wish to use:
- “I am not a robot” Checkbox
- Invisible reCAPTCHA badge
- Enter your domain(s) under the Domains section (e.g. mysuperwebsite.com).
- Click the “Submit” button to finish the registration.
Once registered, you’ll receive two crucial pieces of information:
- Site Key: Public key implemented on your site’s frontend.
- Secret Key: Private key used for communication between the backend and the reCAPTCHA service for validating requests from your site. Do not publicly disclose this key.
Step 2: Configure reCAPTCHA in Comfyform Dashboard
With your Secret Key in hand, it’s time to configure reCAPTCHA for your forms in Comfyform.
- Log into your Comfyform dashboard.
- Navigate to the Forms section and open the form you wish to secure.
- Select the form you’d like to enhance with reCAPTCHA.
- Click on the Security tab.
- Locate the Captcha section and click the “Activate” or “Modify” button.
- Choose reCAPTCHA as your provider.
- Enter your Secret Key into the designated field.
- Click the Save changes button to apply the changes.
Step 3: Implement reCAPTCHA on Your Site
To activate reCAPTCHA on your site, you’ll need to include the reCAPTCHA script and render it where your form is displayed or implement it using JavaScript. Google’s reCAPTCHA documentation provides detailed instructions for this process.
Step 4: Test Your Implementation
After configuring reCAPTCHA in both Google’s service and your Comfyform dashboard, as well as implementing it on your site, it’s essential to run tests. Submit forms from your site to verify that the reCAPTCHA is appearing and functioning correctly, and check that submissions from actual users pass through while automated submissions are blocked.
Need assistance?
For assistance or if you encounter any issues with setting up reCAPTCHA for your forms, our support team is here to help. Contact us at support@comfyform.com or join our Comfyform Discord server and we will guide you through the process for a secure, spam-free form experience.