Firewall worker to only accept requests from Pages site?

Is this possible? If so, what Cloudflare Services would you use to set this up? I want a worker to ONLY receive requests from a site that I have hosted on cloudflare (with Pages).
1 Reply
Hello, I’m Allie!
Yes. Create a WAF Rule, click Edit Expression, then paste cf.worker.upstream_zone ne "project.pages.dev", replacing project.pages.dev with your pages.dev domain
Want results from more Discord servers?
Add your server