Trigger CAPTCHA from worker

Hi, we are using a cloudflare worker assigend to a route. Now we'd like to trigger a CAPTCHA when certain conditions are met. This cannot be done using the WAF (I think) because those conditions include an API call. Has anyone got any experience with this? And suggested mechanisms?
2 Replies
Hello, I’m Allie!
You can't trigger a firewall action with a Worker, but you can serve a page with Turnstile on it it, then validate it yourself
nanos
nanosOP10mo ago
yes, I figured that's what I'd probably have to do
Want results from more Discord servers?
Add your server