Changelog (13)·续7
You can now enable Access on a Worker or all Workers at once
You now have two new ways to protect your Workers with Cloudflare Access.
Protect an application across all its domains at once
Until now, if a Worker was reachable on a route, a Custom Domain, and a workers.dev URL, you had to manually add each one to an Access application and keep the list in sync whenever routes or domains changed.
Now, Access attaches the policy to the Worker itself, so every associated domain and preview URL stays protected even when its routes or domains change.

Protect all new and existing Workers by default
Make all Workers private by default, so every existing and newly created Worker requires sign-in before anyone can reach it.

If a specific Worker should remain publicly accessible, add a Worker-level bypass to exempt it.

Whether you protect a single application or all Workers at once, you can choose whether to protect preview deployments only or both previews and production, and control who can sign in by Cloudflare account membership, email address, or email domain.
For more advanced policy options, edit the policy in Zero Trust ↗︎.

View all of your Worker Access policies
You can view and manage all of your Access policies in the Access tab of the Workers & Pages section in the dashboard.

See who is accessing your Worker
When Access is enabled on your Worker, every authenticated request includes ctx.access. Call ctx.access.getIdentity() to get the user's email, name, and groups — no manual JWT validation required.
export default {
async fetch(request, env, ctx) {
if (!ctx.access) {
return new Response("Access did not run", { status: 401 });
}
const identity = await ctx.access.getIdentity();
return Response.json({ aud: ctx.access.aud, email: identity?.email });
},
};
Test Access locally
You can now test Cloudflare Access locally with wrangler dev. Add a dev block to your wrangler.jsonc:
{
"access": {
"dev": {
"aud": "my-app",
"identity": { "email": "admin@example.com" }
}
}
}
Your Worker will receive this identity through ctx.access and ctx.access.getIdentity(), letting you test authenticated and unauthenticated flows without deploying. Remove the dev block to simulate unauthenticated requests.
API and programmatic access
You can also set up these policies through the Workers API instead of the dashboard.
2026-08-13
Detect and control software package downloads with package registry security
Cloudflare Gateway can now detect software package downloads and give you policy control over supply chain traffic. When a developer or CI/CD pipeline downloads a package through Gateway, the proxy identifies the registry protocol from the request URL and extracts the package ecosystem, name, version, and namespace. You can then write HTTP policies using pkg.* selectors to allow or block package downloads.
Supported ecosystems
Gateway detects package downloads for the following ecosystems:
| Ecosystem | Namespace |
|---|---|
| npm | Scope (for example, @babel) |
| PyPI | -- |
| RubyGems | -- |
| Cargo | -- |
| Go | Module path |
| Maven | Group ID |
| NuGet | -- |
Selectors
In the dashboard, select Package Ecosystem to access the package registry selectors. After selecting a single ecosystem, nested fields for package name, version, and namespace become available. Five pkg.* selectors are available for HTTP policies with the Allow and Block actions:
| Selector | Description |
|---|---|
pkg.ecosystem |
The package ecosystem detected from the request URL. |
pkg.name |
The package name extracted from the download URL. |
pkg.version |
The package version, with support for ecosystem-aware comparison operators. |
pkg.namespace |
The package namespace, when the ecosystem supports one. |
pkg.purl |
The Package URL (PURL) ↗︎ derived from the detected coordinates. Available in the API only. |
Detection is based on the registry protocol rather than the hostname, so it works the same way whether traffic goes to a public registry, a corporate proxy such as Artifactory or Nexus, or a self-hosted mirror.
Package registry security requires TLS decryption to be turned on.
For more information, refer to Package registry security.
2026-08-12
Block emails by content with blocked content rules
Cloudflare Email security now lets administrators write their own content-based blocking rules. A new Blocked content area under Policies & rules lets you define a plaintext string or a regular expression, choose whether to scan the message subject, body, or both, and automatically block any message that matches.
- Create rules using either plaintext matches or regular expressions — useful for blocking targeted phishing campaigns, known-bad phrases, or content patterns unique to your organization.
- Choose the search location for each rule: subject, body, or subject and body.
- Use the built-in regular expression checker to validate your pattern against sample text before saving, so you can confirm the rule matches what you expect and avoid false positives.
- Matching messages are marked with a malicious disposition and prevented from reaching users' inboxes.
Blocked content rules currently only support the block action.
This feature is available for the following Email security packages:
- Enterprise
- Enterprise + PhishGuard
To get started, refer to Blocked content.
2026-08-12
Independent MFA supports FIDO2 for infrastructure applications
Infrastructure applications support independent multi-factor authentication (MFA) with FIDO2 keys. You can allow ssh_fido2_key, piv_key, or both in application-level and policy-level MFA settings.
Users enroll FIDO2 keys through the App Launcher and connect with the generated SSH identity. FIDO2 keys for SSH are separate from browser-based WebAuthn security keys and Personal Identity Verification (PIV) keys.
For setup instructions, refer to Enroll a FIDO2 key for infrastructure apps and Configure MFA for infrastructure applications.
2026-08-12
MCP protocol detection and AI Security dashboard
Cloudflare Gateway now automatically detects Model Context Protocol (MCP) ↗︎ traffic flowing through your network. MCP is the standard protocol used by AI agents to connect to external tools and data sources. Gateway identifies MCP requests by inspecting protocol-specific headers and payload characteristics.
MCP policy selector
A new Is MCP selector (experimental.is_mcp) is available in HTTP policies. Use this selector to build Gateway rules that allow, block, or isolate MCP traffic.
This selector is currently in beta and may change before general availability.
For example, the following policy blocks MCP traffic that does not arrive through an approved MCP portal:
| Selector | Operator | Value | Logic | Action |
|---|---|---|---|---|
| Is MCP | is | True | And | Block |
| Traffic Source | is not | MCP portal |

AI security report
A new AI security report dashboard under Insights & Logs > Dashboards provides visibility into MCP usage across your organization. The dashboard includes:
- Total MCP request volume, unique users, and unique MCP servers
- A timeseries chart of unique MCP servers observed over time
- A summary of Gateway policies that target MCP traffic

For more information, refer to HTTP policies.
2026-08-12
Traffic Source selector in Gateway policies
Gateway HTTP and Network policies now include a Traffic Source selector that identifies how traffic reaches Cloudflare. This allows administrators to write policies that target specific on-ramp methods - for example, applying different rules to traffic arriving via the Cloudflare One Client compared to traffic routed through an MCP portal or a proxy endpoint.
Available traffic source values
| UI name | API value | Description |
|---|---|---|
| Device client | device_client |
Traffic from the Cloudflare One Client (WARP) |
| Mesh | mesh |
Traffic from a Cloudflare Mesh connector |
| Cloudflare WAN | cloudflare_wan |
Traffic from Cloudflare WAN (Magic WAN) |
| Clientless RDP | clientless_rdp |
Traffic from a clientless RDP session |
| Proxy endpoint | proxy_endpoint |
Traffic from a proxy endpoint (PAC file) |
| Clientless Browser Isolation | agentless_biso |
Traffic from clientless Browser Isolation |
| MCP portal | mcp_portal |
Traffic from an MCP portal |
The selector uses the net.onramp.type API field in both HTTP and Network policies.
| UI name | API example |
|---|---|
| Traffic Source | net.onramp.type == "device_client" |
Browser Isolation selector
A Browser Isolation selector is also available in Network and HTTP policies. This selector identifies whether the current session is running inside Remote Browser Isolation, allowing administrators to apply different policy behavior to isolated traffic.
| UI name | API example |
|---|---|
| Browser Isolation | net.is_isolated == true |
For more information, refer to HTTP policies and Network policies.
2026-08-11
Cloudflare Tunnel Cloudflare Tunnel for SASE Cloudflare Mesh Gateway Cloudflare One
Hostname routing is now generally available, with a new public IP range for initial resolved IPs
Hostname routing ↗︎ is now generally available. Instead of managing static IP lists and routes, you can route traffic by hostname across multiple Cloudflare One connectors:
- Cloudflare Tunnel: route a private hostname (for example,
wiki.internal.local) to a private application behind your tunnel, or a public hostname (for example,bank.example.com) to egress through a specific tunnel and anchor traffic to a dedicated exit node. - Cloudflare Mesh: attract a private or public hostname's traffic to a Mesh node.
Alongside GA, the default IPv4 range used for initial resolved IPs (also called token IPs) is changing from a Carrier-Grade NAT (CGNAT) range to a public Cloudflare-owned range:
- IPv4:
172.64.128.0/20 - IPv6:
2606:4700:0cf1:4000::/64
This is the default range. You can configure a custom initial resolved IP range for IPv4 if it conflicts with your existing network.
Why this is changing: Starting with Chrome 142 ↗︎, Local Network Access (LNA) restrictions block background requests to CGNAT addresses (100.64.0.0/10), which included the previous initial resolved IP default (100.80.0.0/16). LNA is implemented at the Chromium engine level, so it affects all Chromium-based browsers (for example, Microsoft Edge, Brave, and Opera), not only Google Chrome. This could silently break hostname-based Gateway features for users of these browsers, and required Chrome Enterprise policy workarounds. The new default range is public Cloudflare address space, so it is not affected by this restriction.
What is affected: Initial resolved IPs are used by several features that associate a DNS query with the network connection that follows it:
- Private and public hostname routing for Cloudflare Tunnel
- Hostname routes for Cloudflare Mesh
- Access private applications on non-HTTPS ports
- Egress policy host selectors (Domain, Host, Application, and Content Categories)
