Cloudflare adds custom code to Gateway security decisions
A new Forward action and custom validation functions let customers run Workers alongside Gateway policies, including on all Zero Trust plans.

Cloudflare is adding custom code to security decisions in Cloudflare Gateway, allowing customers to run their own logic as traffic passes through policy evaluation. The company announced a new Gateway action called Forward and custom validation functions, both available to all Zero Trust plans.
The change addresses a limitation of conventional secure web gateways, which typically apply a fixed action such as allowing, blocking, isolating or logging traffic. Cloudflare says customers can use a Worker to transform traffic or supply their own data to a policy check, rather than relying only on built-in actions.
What teams can do with the new options
Cloudflare describes the new capabilities as a way to handle cases that have required separate infrastructure. For example, a team could use information from identity-provider JWT claims to add HTTP headers to requests for an internal application. The company says one customer need it has heard is to do that without maintaining a separate pool of NGINX proxies.
Another use case is responding to an employee signing up for a new software service. Cloudflare says Gateway can detect such an event, but a conventional policy action cannot send a custom notification. Teams have instead built pipelines that send logs through SIEM systems to Slack, which the company says can take five to 15 minutes and does not guarantee delivery. Workers can also support customized responses, such as warning pages that ask users to justify access to sensitive destinations.
How Cloudflare says it works
Cloudflare says Gateway and Workers run on the same infrastructure across its network. When Gateway forwards traffic to a Worker, the dispatch is a local function call, according to the company, rather than traffic being sent across a separate network boundary. Cloudflare says this avoids additional latency from that kind of transfer.
The announcement does not specify configuration steps, feature limits or a separate rollout schedule. Cloudflare says the new action and validation functions are available to all Zero Trust plans.
This report draws on information from Cloudflare Blog.
Editorial checks passed Facts, figures and quotes checked against 1 source Drafted with AI assistance · How it works
Add Blogging News as a preferred source on Google



