Specify a cloudflare worker to only accept request from other cloudflare worker.

I was wondering if there's a way to inspect the request and see if comes from another worker or not (otherwise reject). Or if there's a WAF rule i could set up (though this means every internal Workers would need to be setup externally through WAF).
1 Reply
Cyb3r-Jak3
Cyb3r-Jak39mo ago
You check https://developers.cloudflare.com/ruleset-engine/rules-language/fields/#field-cf-worker-upstream_zone in a WAF rule. If it isn't set then it it didn't come from a worker
Cloudflare Docs
Fields reference · Cloudflare Ruleset Engine docs
The Cloudflare Rules language supports a range of field types:
Want results from more Discord servers?
Add your server