====== Google ReCaptcha ======
Google reCAPTCHA is a convenient alternative to traditional CAPTCHA for verifying visitors. Here's how to set it up:
1. Visit https://developers.google.com/recaptcha and register to obtain:
- reCAPTCHA V3 Site Key
- reCAPTCHA V3 Secret Key
2. Enter these values in Rotation > Settings > Social, and enable "Use Captcha on Comments?"
===== reCAPTCHA for comments =====
reCAPTCHA works by adding Google's JavaScript code to your form to verify the user is not a bot, storing the verification result in a hidden field. Here's an example for a comments page. Add this code to the HTML head section:
with reCAPTCHA
Note that is your reCAPTCHA V3 Site Key (not the secret key).
Here's the comment form itself:
if ('' != 'OK') echo "error: "; ?>
===== reCAPTCHA Anticheat =====
reCAPTCHA can also be used to monitor traffic quality. Google analyzes traffic and reports the percentage it considers legitimate (non-bot).
Add the following code to your site (typically on index and category pages):
Add class='gallery_link' to links to galleries or categories as in the example below
You can replace gallery_link with any class name. The key is to attach a bot detection event to your links using JavaScript: $('.gallery_link').each(function() { ... }).
4. In the admin panel, go to Settings > Layouts and enable the Google reCAPTCHA column.
Now you can view the percentage of legitimate traffic in Trade > reCAPTCHA column.
**Note:** Google allows only 1300 free checks per hour, so not all hits are analyzed—they're sampled based on RECAPTCHA_MAX_RATE. If you need unlimited checks, contact support about paid options.