Configure reCAPTCHA service by Google for Adaptive Forms
AEM Forms users can use the reCAPTCHA service by Google to implement CAPTCHA in adaptive forms. It offers advanced CAPTCHA capabilities to protect your site. For more information on how reCAPTCHA works, see Google reCAPTCHA. reCAPTCHA service including reCAPTCHA v2 and reCAPTCHA Enterprise is integrated into AEM Forms. Based on your requirement you can configure reCAPTCHA service to enable:
Configure reCAPTCHA Enterprise
-
Create a reCAPTCHA Enterprise project enabled with reCAPTCHA Enterprise API.
-
Obtain the Project ID.
-
Create an API key and a site key for websites.
-
Create configuration container for cloud services.
-
Go to Tools > General > Configuration Browser. See the Configuration Browser documentation for more information.
-
Do the following to enable the global folder for cloud configurations or skip this step to create and configure another folder for cloud service configurations.
- In the Configuration Browser, select the global folder and select Properties.
- In the Configuration Properties dialog, enable Cloud Configurations.
- Select Save & Close to save the configuration and exit the dialog.
-
In the Configuration Browser, select Create.
-
In the Create Configuration dialog, specify a title for the folder and enable Cloud Configurations.
-
Select Create to create the folder enabled for cloud service configurations.
-
-
Configure the cloud service for reCAPTCHA Enterprise.
-
On your Experience Manager author instance, go to
-
Select reCAPTCHA. The Configurations page opens. Select the configuration container created in the previous step and select Create.
-
Select version as reCAPTCHA Enterprise and specify Name; Project ID, Site Key, and API key(Obtained in Step 2 and 3) for reCAPTCHA Enterprise service.
-
Select key type, the key type should be same as the site key configured in the google cloud project, for example, Checkbox site key or Score-based site key.
-
Specify a threshold score in the range 0–1 (Click to know more about score). Scores greater than or equal to the threshold scores identify human interaction, otherwise considered bot interaction.
Note:
- Form authors can specify a score in the range suitable for uninterrupted form submission.
-
Select Create to create the cloud service configuration.
-
In the Edit Component dialog, specify the name, project ID, site key, API key (obtained in steps 2 and 3), select the key type, and enter the threshold score. Select Save Settings and then select OK to complete the configuration.
-
Once the reCAPTCHA Enterprise service is enabled, it is available for use in adaptive forms. See using CAPTCHA in adaptive forms.
Configure Google reCAPTCHA v2
-
Obtain reCAPTCHA API key pair from Google. It includes a site key and a secret key.
-
Create configuration container for cloud services.
-
Go to Tools > General > Configuration Browser. See the Configuration Browser documentation for more information.
-
Do the following to enable the global folder for cloud configurations or skip this step to create and configure another folder for cloud service configurations.
-
In the Configuration Browser, select the global folder and select Properties.
-
In the Configuration Properties dialog, enable Cloud Configurations.
-
Select Save & Close to save the configuration and exit the dialog.
-
-
In the Configuration Browser, select Create.
-
In the Create Configuration dialog, specify a title for the folder and enable Cloud Configurations.
-
Select Create to create the folder enabled for cloud service configurations.
-
-
Configure the cloud service for reCAPTCHA v2.
- On your AEM author instance, go to
- Select reCAPTCHA. The Configurations page opens. Select the configuration container created in the previous step and select Create.
- Select version as reCAPTCHA v2, specify Name; Site key, and Secret Key for reCAPTCHA service(Obtained in Step 1) and select Create to create the cloud service configuration.
- In the Edit Component dialog, specify the site and secret keys obtained in step 1. Select Save Settings and then select OK to complete the configuration.
Once the reCAPTCHA service is configured, it is available for use in adaptive forms. For more information, see using CAPTCHA in adaptive forms.
- On your AEM author instance, go to