Introduction
Google reCAPTCHA is a popular service provided by Google that helps protect your website from spam and abuse. By integrating reCAPTCHA into Directorist, your directory website can enhance security and prevent automated bots from submitting fake listings or spammy content. This documentation will guide you through the process of integrating Google reCAPTCHA into your Directorist website.
Prerequisites:
Before proceeding, ensure you have the following:
- A functional Directorist website with administrative access.
- A Google account to register your site for reCAPTCHA.
Step 1: Register your site for reCAPTCHA:
- Go to the Google reCAPTCHA website (https://www.google.com/recaptcha) and sign in with your Google account.
- Click on the "Admin Console" button in the top-right corner.
- Click the "+ Create" button on the top-right corner to register a new site.
- Fill in the required fields:
- Label: Enter a unique name to identify your site.
- reCAPTCHA type: Choose "reCAPTCHA v2 - Checkbox" (recommended) or "reCAPTCHA v3" depending on your preference and use case.
- Domains: Enter your Directorist website domain(s) where you want to enable reCAPTCHA.
- Owners: Add the email addresses of the website owners (optional).
- Accept the reCAPTCHA Terms of Service and click the "Submit" button.
- After successful registration, you will receive a Site Key and Secret Key. Keep these keys secure, as they are used to enable reCAPTCHA on your site.
Step 2: Enable reCAPTCHA in Directorist:
- Log in to your Directorist website as an administrator.
- Go to the WordPress Dashboard and navigate to "Directorist" > "Settings."
- Click on the "Extensions" tab.
- Scroll down to the "reCAPTCHA" section.
- Enter the "Site Key" and "Secret Key" obtained from the Google reCAPTCHA registration.
- Customize the appearance of the reCAPTCHA theme (optional).
- Click the "Save Changes" button to save the settings.
Please refer to the attachment:
Step 3: Test the Integration:
After enabling reCAPTCHA, you should test its functionality to ensure it's working correctly.
- Go to the front end of your Directorist website.
- Attempt to submit a listing or perform any action where reCAPTCHA is enabled.
- Verify that the reCAPTCHA widget appears and functions correctly.
- Complete the reCAPTCHA challenge to proceed with the action.
By integrating Google reCAPTCHA into your Directorist website, you enhance its security and protect it from spam and abusive activities. The steps outlined in this documentation should guide you through the process of enabling reCAPTCHA effectively. Please find the video instructions below,
Please note that Google's reCAPTCHA service may have additional documentation and guidelines that can further assist you in utilizing their service efficiently. Always keep your reCAPTCHA keys secure and update them if necessary for better security.
Last Updated: August 25th, 2023