Friendly Captcha v2 for bot protection
Protect sign-in and registration with Friendly Captcha v2, a privacy-first proof-of-work CAPTCHA with optional EU endpoint support.
Friendly Captcha v2 is now available as a built-in CAPTCHA provider in Logto alongside reCAPTCHA Enterprise, Cloudflare Turnstile, Cap, and GeeTest. It uses proof-of-work verification without visual puzzles to protect sign-up, sign-in, and password recovery flows while remaining GDPR-compliant.
Key capabilities
- Global and EU API endpoints: Defaults to Friendly Captcha's global endpoint (
global.frcapi.com). Teams on Friendly Captcha Advanced or Enterprise plans can select the dedicated EU endpoint (eu.frcapi.com) for both the sign-in widget and server-side token verification. - Built-in sign-in experience: Logto lazily loads
@friendlycaptcha/sdk, embeds the widget without requiring CSP changes, verifies tokens against Friendly Captcha's v2siteverifyAPI withsitekeybinding, and resets single-use tokens automatically. - Bring your UI support: Custom sign-in frontends can mount
@friendlycaptcha/sdkdirectly and pass the completion token ascaptchaTokeninPUT /api/experience.
How to configure
- In the Friendly Captcha dashboard, create a v2 application and generate an API key. If you restrict allowed origins, add your Logto endpoint domain.
- In Logto Console, go to Security > CAPTCHA, click Add CAPTCHA, and choose Friendly Captcha.
- Enter your Site key and API key, keep API endpoint set to Global (or select EU if your sitekey is restricted to the EU endpoint), and switch on Enable CAPTCHA.
You can also configure Friendly Captcha through the Management API with PUT /api/captcha-provider:
{
"config": {
"type": "FriendlyCaptcha",
"siteKey": "<siteKey>",
"secretKey": "<apiKey>",
"apiEndpoint": "global"
}
}