User Guide
Captcha Configuration
Configure human verification functionality
TinyShip uses Cloudflare Turnstile as the captcha solution to protect login and registration forms from bot attacks.
Related Pages
| Page | Path | Description |
|---|---|---|
| Sign In | /signin | Captcha can be enabled |
| Sign Up | /signup | Captcha can be enabled |
Setup Steps
- Visit Cloudflare Dashboard
- Go to Turnstile page
- Add site to get keys
Environment Variables
NEXT_PUBLIC_TURNSTILE_SITE_KEY="0x4AAA..."
TURNSTILE_SECRET_KEY="0x4AAA..."Enable Captcha
// config/captcha.ts
export const captchaConfig = {
enabled: true,
provider: 'turnstile',
}Development Environment
Cloudflare provides test keys:
# Always pass
NEXT_PUBLIC_TURNSTILE_SITE_KEY="1x00000000000000000000AA"
TURNSTILE_SECRET_KEY="1x0000000000000000000000000000000AA"
# Always fail
NEXT_PUBLIC_TURNSTILE_SITE_KEY="2x00000000000000000000AB"
TURNSTILE_SECRET_KEY="2x0000000000000000000000000000000AB"