Turnstile
Add Cloudflare Turnstile to protect your Pixelflare instance from bots and abuse.
What is Turnstile?
Cloudflare Turnstile is a CAPTCHA alternative that provides bot protection without user interaction.
Setup Steps
1. Create Turnstile Site
- Visit Cloudflare Dashboard → Turnstile
- Create a new site
- Copy your Site Key and Secret Key
2. Configure Environment Variables
3. Deploy
bash
# Set secret in Worker
echo "YOUR_SECRET_KEY" | wrangler secret put TURNSTILE_SECRET_KEY
# Redeploy
pnpm deployVerification
Turnstile will now appear on:
- Login page
- Upload forms
- API key generation
Troubleshooting
Turnstile Not Showing
Check that TURNSTILE_SITE_KEY is set in your frontend environment.
"Invalid Turnstile Response"
Verify TURNSTILE_SECRET_KEY matches your dashboard settings.