Purchase Now

Overview

CoinTrail supports Google reCAPTCHA v2 ("I'm not a robot" checkbox) to protect forms from bots and spam submissions.

Optional Feature

reCAPTCHA is optional. If not configured, forms will work without CAPTCHA protection.

Getting reCAPTCHA Keys

Create reCAPTCHA Site

  1. Go to Google reCAPTCHA Admin
  2. Click the + button to create a new site
  3. Enter a label (e.g., "CoinTrail")
  4. Select reCAPTCHA v2"I'm not a robot" Checkbox
  5. Add your domain(s) under Domains
  6. Accept the Terms of Service
  7. Click Submit

Copy Keys

After creation, you'll receive two keys:

  • Site Key - Used on the frontend (public)
  • Secret Key - Used on the backend (private)

Configuration

Add your reCAPTCHA keys to the .env file:

.env
# Google reCAPTCHA v2
RECAPTCHA_PUBLIC_KEY=your_site_key_here
RECAPTCHA_PRIVATE_KEY=your_secret_key_here

Enabling reCAPTCHA

After configuring the keys, enable reCAPTCHA in the admin panel:

  1. Go to Admin Panel > Settings > Features
  2. Find the reCAPTCHA section
  3. Toggle Enable reCAPTCHA to ON
  4. Click Save

Protected Forms

When enabled, the following forms will display the reCAPTCHA widget:

  • User registration
  • User login
  • Password reset request
  • Contact form

Testing

To test reCAPTCHA on localhost:

  1. Add localhost to your reCAPTCHA domains in Google Admin
  2. Configure your .env keys
  3. Enable reCAPTCHA in admin
  4. Visit a protected form to verify the widget appears
Domain Verification

reCAPTCHA only works on domains registered in your Google reCAPTCHA settings. Add all production domains including www and non-www versions.

Troubleshooting

IssueSolution
reCAPTCHA not showingVerify .env keys are correct and reCAPTCHA is enabled in admin
"ERROR for site owner"Add your domain to reCAPTCHA settings in Google Admin
Validation always failsCheck that the secret key is correctly set in .env