ReCaptcha v3
Google's invisible, score-based bot protection service
About ReCaptcha v3
Google reCAPTCHA v3 is an invisible CAPTCHA service that runs in the background and provides a risk score (0.0 to 1.0) for each user interaction. Unlike v2, it doesn't interrupt users with challenges but instead analyzes their behavior to determine if they're human or bot.
For more information, visit the official Google reCAPTCHA v3 documentation.
Showcase
Usage
import { ReCaptchaV3 } from "@better-captcha/react/provider/recaptcha-v3";
<ReCaptchaV3 sitekey="6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI" options={{ action: "submit" }} />Configuration
Provider Options
Prop
Type
Imperative Handle
Prop
Type
Best Practices
- Use Meaningful Actions: Use descriptive action names (e.g., "login", "submit", "register") to track different user interactions
- Verify Server-Side: Always verify the response token on your backend and check the score
- Set Score Threshold: Decide on a score threshold (typically 0.5) for accepting submissions
- Handle Errors Gracefully: Always implement the
onErrorcallback to handle network failures - Token Caching: The provider automatically caches tokens for 2 minutes to reduce API calls
- Multiple Actions: Use different actions for different pages/interactions to get better analytics