Skip to content

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

  1. Visit Cloudflare Dashboard → Turnstile
  2. Create a new site
  3. 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 deploy

Verification

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.

Further Reading

Released under the MIT License.