Rules - Match Workers subrequests by upstream zone — cf.worker.upstream_zone now supported in Transform Rules
1y ago
Source
CloudflareRules - Match Workers subrequests by upstream zone — cf.worker.upstream_zone now supported in Transform Rulescloudflare.comYou can now use the cf.worker.upstream_zone field in Transform Rules to control rule execution based on whether a request originates from Workers , including subrequests issued by Workers in other zones. What's new: cf.worker.upstream_zone is now supported in Transform Rules expressions. Skip or apply logic conditionally when handling Workers subrequests . For example, to add a header when the subrequest comes from another zone: Text in Expression Editor (replace myappexample.com with your domain): (cf.worker.upstream_zone != "" and cf.worker.upstream_zone != "myappexample.com") Selected operation under Modify request header : Set static Header name : X-External-Workers-Subrequest Value : 1 This gives you more granular control in how you handle incoming requests for your zone. Learn more in the Transform Rules documentation and Rules language fields reference.
You might also wanna read
Cloudflare expands AI bot management tools with granular traffic controls for all customers
Cloudflare is celebrating the second "Content Independence Day" by expanding AI traffic management options for all website owners. Building
Workers - Simpler runtime types with @cloudflare/workers-types v5
Cloudflare·1d ago
Workers - Work across multiple accounts with Wrangler auth profiles
Cloudflare·2d ago
Cache - Cache multiple versions of a URL with Vary
Cloudflare·2d ago
Cloudflare One - Hostname routing for Cloudflare Mesh
Cloudflare·2d ago
AI Search - Manage AI Search sync jobs with Wrangler CLI
Cloudflare·2d ago

Comments
Sign in to join the conversation.
No comments yet. Be the first.