#Using workers as a custom firewal
4 messages · Page 1 of 1 (latest)
I wouldn't recommend using a worker due to pricing, if the logic very simple, you can use the normal WAF (https://developers.cloudflare.com/ruleset-engine/rules-language/), or a Snippet (https://blog.cloudflare.com/cloudflare-snippets-alpha/, coming soon™️)
Otherwise, just return a 403 from the worker, there is no "proper" way.