diff --git a/src/content/docs/cloudflare-one/traffic-controls/canonical-selectors.mdx b/src/content/docs/cloudflare-one/traffic-controls/canonical-selectors.mdx new file mode 100644 index 00000000000..d34fbcc9a16 --- /dev/null +++ b/src/content/docs/cloudflare-one/traffic-controls/canonical-selectors.mdx @@ -0,0 +1,113 @@ +--- +title: Canonical selectors +description: Use consistent Gateway selector names across policy types, and keep existing expressions that use legacy selector names. +pcx_content_type: reference +products: + - cloudflare-one +sidebar: + order: 14 +--- + +Canonical selectors give the same Gateway condition a consistent field name across supported policy types. For example, `ip.src` represents Source IP in DNS, HTTP, and network policies. + +Use canonical names when writing new expressions. Existing expressions using legacy names remain supported, and you can continue to use those names through the API or the expression editor. No migration is required. + +## Selector names + +The following table maps canonical selectors to their corresponding legacy names. Each legacy name retains its existing policy-type and action restrictions. + +| Selector | Canonical field | Legacy fields | +| --------------------- | --------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| Source IP | `ip.src` | `dns.src_ip`, `net.src.ip`, `http.conn.src_ip` | +| Source Internal IP | `ip.src_internal` | `dns.src_internal_ip`, `net.src.internal_src_ip`, `http.conn.internal_src_ip` | +| Destination IP | `ip.dst` | `net.dst.ip`, `http.conn.dst_ip` | +| Source Country | `ip.src.country` | `dns.src.geo.country`, `net.src.geo.country`, `http.src_ip.geo.country` | +| Source Continent | `ip.src.continent` | `dns.src.geo.continent`, `net.src.geo.continent`, `http.src_ip.geo.continent` | +| Destination Country | `ip.dst.country` | `net.dst.geo.country`, `http.dst_ip.geo.country` | +| Destination Continent | `ip.dst.continent` | `net.dst.geo.continent`, `http.dst_ip.geo.continent` | +| Virtual Network | `vnet.id` | `net.vnet_id`, `http.conn.vnet_id` | +| Traffic Source | `onramp.type` | `net.onramp.type` | +| Traffic Destination | `offramp.type` | `net.offramp.type` | +| Browser Isolation | `is_isolated` | `net.is_isolated` | +| Host | `host` | `dns.fqdn`, `http.conn.hostname`, `http.request.host`, `net.fqdn.host` | +| Domain | `domains` | `dns.domains`, `http.conn.domains`, `http.request.domains`, `net.fqdn.domains` | +| Content Categories | `content_categories` | `dns.content_category`, `http.conn.content_category`, `http.request.uri.content_category`, `net.fqdn.content_category` | +| Security Categories | `security_categories` | `dns.security_category`, `http.conn.security_category`, `http.request.uri.security_category`, `net.fqdn.security_category` | + +Canonical names do not make every field available in every policy type. Refer to the selector reference for [DNS](/cloudflare-one/traffic-controls/dns-policies/#selectors), [HTTP](/cloudflare-one/traffic-controls/http-policies/#selectors), [network](/cloudflare-one/traffic-controls/network-policies/#selectors), [egress](/cloudflare-one/traffic-controls/egress-policies/#selectors), or [resolver](/cloudflare-one/traffic-controls/resolver-policies/#selectors) policies for availability and restrictions. + +Fields without a canonical replacement keep their existing names. For example, use `net.dst.port` for Destination Port, `http.request.method` for HTTP Method, and `dns.query_rtype` for Query Record Type. + +## Expression examples + +For a Source IP condition, use the following canonical expression in a compatible policy type: + +```txt +ip.src in {192.0.2.0/24} +``` + +These existing expressions remain supported in their respective policy types: + +| Policy type | Legacy expression | +| ----------- | ------------------------------------ | +| DNS | `dns.src_ip in {192.0.2.0/24}` | +| HTTP | `http.conn.src_ip in {192.0.2.0/24}` | +| Network | `net.src.ip in {192.0.2.0/24}` | + +Use `host` for an exact hostname match: + +```txt +host == "example.com" +``` + +`domains` returns an array. Keep `any()` and `[*]` when matching it: + +```txt +any(domains[*] == "example.com") +``` + +Category fields also return arrays: + +```txt +any(content_categories[*] in {17 85 102}) +``` + +You can combine canonical and legacy fields in the same supported expression: + +```txt +ip.src in {192.0.2.0/24} and net.dst.port == 443 +``` + +## Scalar and array fields + +Preserve the syntax required by each field's type. In particular, canonical `ip.dst` is a single IP address, while legacy `http.conn.dst_ip` is an array. + +Use the canonical Destination IP expression: + +```txt +ip.dst in {198.51.100.0/24} +``` + +The existing HTTP array expression remains valid: + +```txt +any(http.conn.dst_ip[*] in {198.51.100.0/24}) +``` + +When rewriting this expression, replace the complete condition. Changing only the field name would leave array syntax around a scalar field. Apply the same review to negation and list expressions. + +## Dashboard behavior + +The visual builder uses canonical selectors when you add a new condition or select a selector again. When you load an existing condition, the builder preserves its legacy selector while that selector remains unchanged. Editing its value does not require migrating the selector. + +An expression can therefore contain both legacy and canonical selectors after editing. Both remain supported. Formatting and parentheses can change when an expression is serialized. + +## Evaluation context + +A canonical selector reads the value available in the policy's evaluation context. Host and category matching still follow the rules for that policy type and action. The shared name does not change when Gateway evaluates a policy or which traffic data is available. + +For DNS policies, Resolved IP, Resolved Country, and Resolved Continent continue to use `dns.resolved_ips`, `dns.dst.geo.country`, and `dns.dst.geo.continent`. They are distinct from connection destination selectors. + +Network SNI selectors, including `net.sni.host` and `net.sni.domains`, also keep their existing names and meanings. Do not replace them with `host` or `domains`. + +Canonical selectors are part of [Gateway policy expressions](/cloudflare-one/traffic-controls/expression-syntax/). Use Gateway selector references when authoring policies, even when a field name also appears in the Rules language used by other Cloudflare products. diff --git a/src/content/docs/cloudflare-one/traffic-controls/dns-policies/index.mdx b/src/content/docs/cloudflare-one/traffic-controls/dns-policies/index.mdx index 2cf277afb70..ca9afedd889 100644 --- a/src/content/docs/cloudflare-one/traffic-controls/dns-policies/index.mdx +++ b/src/content/docs/cloudflare-one/traffic-controls/dns-policies/index.mdx @@ -294,6 +294,8 @@ This setup ensures users will be blocked from accessing offensive sites using DN ## Selectors +Examples use [canonical selector names](/cloudflare-one/traffic-controls/canonical-selectors/). Existing expressions using the corresponding legacy names remain supported. No migration is required. + Gateway matches DNS queries against the following selectors, or criteria. Each selector is evaluated during a specific phase of the DNS resolution process: @@ -379,7 +381,7 @@ Use this selector to filter DNS responses by their `TXT` records. ### Host @@ -387,7 +389,7 @@ Use this selector to filter DNS responses by their `TXT` records. ### Indicator Feeds @@ -474,7 +476,7 @@ Use this selector to apply policies to the source internal IP address of a DNS q | UI name | API example | Evaluation phase | | ------------------ | ---------------------------------- | --------------------- | -| Source Internal IP | `dns.src_internal_ip == 10.10.0.1` | Before DNS resolution | +| Source Internal IP | `ip.src_internal == 10.10.0.1` | Before DNS resolution | ### Users diff --git a/src/content/docs/cloudflare-one/traffic-controls/egress-policies/index.mdx b/src/content/docs/cloudflare-one/traffic-controls/egress-policies/index.mdx index 6fb6f22afb6..e8280e82e09 100644 --- a/src/content/docs/cloudflare-one/traffic-controls/egress-policies/index.mdx +++ b/src/content/docs/cloudflare-one/traffic-controls/egress-policies/index.mdx @@ -93,6 +93,8 @@ To learn more about IPv4 and IPv6 egress behavior, refer to [Egress locations](/ ## Selectors +Examples use [canonical selector names](/cloudflare-one/traffic-controls/canonical-selectors/). Existing expressions using the corresponding legacy names remain supported. No migration is required. + Selectors are the criteria that Gateway uses to match egress traffic against a policy. Gateway evaluates the following selectors: ### Application @@ -113,7 +115,7 @@ Selectors are the criteria that Gateway uses to match egress traffic against a p ### Destination Port @@ -158,7 +160,7 @@ Selectors are the criteria that Gateway uses to match egress traffic against a p ### Source IP @@ -208,7 +210,7 @@ The country of the user making the request. ### Source Port @@ -224,7 +226,7 @@ The country of the user making the request. ## Comparison operators diff --git a/src/content/docs/cloudflare-one/traffic-controls/expression-syntax.mdx b/src/content/docs/cloudflare-one/traffic-controls/expression-syntax.mdx index 222cd085b8f..3263e1cc65d 100644 --- a/src/content/docs/cloudflare-one/traffic-controls/expression-syntax.mdx +++ b/src/content/docs/cloudflare-one/traffic-controls/expression-syntax.mdx @@ -35,8 +35,8 @@ Gateway expressions follow this pattern: For example: ```txt -dns.fqdn == "example.com" -http.request.host == "api.example.com" +host == "example.com" +ip.src == 192.0.2.1 identity.email == "user@company.com" ``` @@ -46,10 +46,10 @@ Gateway supports the following operators: | Operator | Name | Example | | --------- | -------------------------- | ------------------------------------------------ | -| `==` | Equals | `dns.fqdn == "example.com"` | -| `!=` | Does not equal | `http.request.host != "blocked.com"` | +| `==` | Equals | `host == "example.com"` | +| `!=` | Does not equal | `host != "blocked.com"` | | `in` | Value is in set | `net.dst.port in {80 443}` | -| `matches` | Matches regular expression | `http.request.host matches ".*\\.example\\.com"` | +| `matches` | Matches regular expression | `host matches ".*\\.example\\.com"` | | `>` | Greater than | `http.upload.file.size > 10` | | `>=` | Greater than or equal to | `http.download.file.size >= 100` | | `<` | Less than | `http.upload.file.size < 50` | @@ -61,7 +61,7 @@ Combine multiple conditions using logical operators: | Operator | Name | Example | | -------- | ----------- | --------------------------------------------------------------------- | -| `and` | Logical AND | `dns.fqdn == "example.com" and identity.email == "admin@company.com"` | +| `and` | Logical AND | `host == "example.com" and identity.email == "admin@company.com"` | | `or` | Logical OR | `net.dst.port == 80 or net.dst.port == 443` | | `not` | Logical NOT | `not(identity.email == "guest@company.com")` | @@ -70,7 +70,7 @@ Combine multiple conditions using logical operators: Some Gateway fields return arrays (multiple values). Use the `any()` function to match if any element in the array meets the condition: ```txt -any(http.request.uri.content_category[*] in {17 85 102}) +any(content_categories[*] in {17 85 102}) ``` ```txt @@ -78,7 +78,7 @@ any(identity.groups[*].name in {"Engineering" "Security"}) ``` ```txt -any(http.request.domains[*] == "example.com") +any(domains[*] == "example.com") ``` The `[*]` notation indicates that the function should evaluate all elements in the array. @@ -88,41 +88,35 @@ The `[*]` notation indicates that the function should evaluate all elements in t You can reference [lists](/cloudflare-one/reusable-components/lists/) in your expressions using the list UUID: ```txt -http.request.host in $ +host in $ ``` ```txt -any(http.request.domains[*] in $) +any(domains[*] in $) ``` To find a list's UUID, go to **My Team** > **Lists** in Zero Trust and select the list. The UUID appears in the browser URL. -## Common field patterns +## Shared and policy-specific fields -Each Gateway policy type has its own set of available fields. The following table shows the field prefixes used by each policy type: +Use [canonical selectors](/cloudflare-one/traffic-controls/canonical-selectors/) for concepts shared across policy types, such as `ip.src`, `host`, and `domains`. Existing legacy selector names remain supported. No migration is required. -| Policy type | Field prefix | Example fields | -| -------------- | ----------------- | --------------------------------------------------------------- | -| DNS | `dns.` | `dns.fqdn`, `dns.content_category`, `dns.src_ip` | -| HTTP | `http.` | `http.request.host`, `http.request.uri`, `http.request.domains` | -| Network | `net.` | `net.dst.ip`, `net.dst.port`, `net.src.ip` | -| Identity | `identity.` | `identity.email`, `identity.groups`, `identity.name` | -| Device posture | `device_posture.` | `device_posture.checks.passed` | +Some fields apply to a particular policy type. For example, `http.request.method` describes an HTTP request, while `dns.query_rtype` describes a DNS query. Identity and device posture conditions use their own expression sections. -For a complete list of available fields for each policy type, refer to the selectors documentation linked at the top of this page. +For availability, refer to the selector reference for each policy type. The field name alone does not determine compatibility. ## Example expressions ### Block a domain in a DNS policy ```txt -dns.fqdn == "example.com" +host == "example.com" ``` ### Block multiple content categories in an HTTP policy ```txt -any(http.request.uri.content_category[*] in {17 85 102}) +any(content_categories[*] in {17 85 102}) ``` ### Allow traffic from a specific user group @@ -134,13 +128,13 @@ any(identity.groups[*].name in {"Engineering"}) ### Block traffic to a destination IP range in a Network policy ```txt -net.dst.ip in {10.0.0.0/8} +ip.dst in {10.0.0.0/8} ``` ### Combine identity and traffic conditions ```txt -http.request.host == "internal.example.com" and identity.email matches ".*@company.com" +host == "internal.example.com" and identity.email matches ".*@company.com" ``` ## Gateway versus Ruleset Engine @@ -150,9 +144,9 @@ The following table summarizes the key differences between the Rules language](/ | | Ruleset Engine | Gateway | | ------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | | **Products** | WAF, Transform Rules, Cache Rules, Configuration Rules | DNS, HTTP, Network, Egress, Resolver policies | -| **Field examples** | `http.request.uri.path`, `cf.bot_management.score`, `ip.src` | `dns.fqdn`, `http.request.host`, `identity.email` | +| **Field examples** | `http.request.uri.path`, `cf.bot_management.score`, `ip.src` | `host`, `ip.src`, `identity.email` | | **Identity fields** | Not available | Available (for example, `identity.email`, `identity.groups`) | -| **DNS fields** | Not available | Available (for example, `dns.fqdn`, `dns.content_category`) | +| **DNS fields** | Not available | Available (for example, `dns.query_rtype`, `dns.resolved_ips`) | | **Documentation** | [Rules language](/ruleset-engine/rules-language/) | [Traffic policies](/cloudflare-one/traffic-controls/) | :::note diff --git a/src/content/docs/cloudflare-one/traffic-controls/http-policies/index.mdx b/src/content/docs/cloudflare-one/traffic-controls/http-policies/index.mdx index 7bceba271e1..e2f47cd7eb8 100644 --- a/src/content/docs/cloudflare-one/traffic-controls/http-policies/index.mdx +++ b/src/content/docs/cloudflare-one/traffic-controls/http-policies/index.mdx @@ -418,6 +418,8 @@ In **Sandbox file types**, you can select which file types to quarantine with yo ## Selectors +Examples use [canonical selector names](/cloudflare-one/traffic-controls/canonical-selectors/). Existing expressions using the corresponding legacy names remain supported. No migration is required. + :::note Policies created using the URL selector are case-sensitive. ::: @@ -488,14 +490,14 @@ Whether the current session is running inside [Remote Browser Isolation](/cloudf | UI name | API example | | ----------------- | ------------------------- | -| Browser Isolation | `net.is_isolated == true` | +| Browser Isolation | `is_isolated == true` | ### Content Categories ### Destination Continent @@ -531,7 +533,7 @@ Only applies to traffic sent through the [Cloudflare One Client](/cloudflare-one ### Device Posture @@ -543,7 +545,7 @@ Only applies to traffic sent through the [Cloudflare One Client](/cloudflare-one ### Download and Upload File Size @@ -685,7 +687,7 @@ For example, the following policy blocks MCP traffic that does not arrive throug ### HTTP Method @@ -753,7 +755,7 @@ The version of the package detected from the HTTP request URL. Supports exact ma ### Source Continent @@ -769,7 +771,7 @@ The country of the user making the request. ### Source IP @@ -777,7 +779,7 @@ The country of the user making the request. ### Traffic Destination @@ -786,7 +788,7 @@ The method used to off-ramp traffic from Cloudflare. Use this selector to apply | UI name | API example | | ------------------- | -------------------------------- | -| Traffic Destination | `net.offramp.type == "internet"` | +| Traffic Destination | `offramp.type == "internet"` | Available values: `internet` (Internet), `cloudflare_wan` (Cloudflare WAN), `cloudflare_tunnel` (Cloudflare Tunnel), `device_client` (Cloudflare One Client), `mesh` (Mesh). @@ -796,7 +798,7 @@ The method used to on-ramp traffic to Cloudflare. Use this selector to apply pol | UI name | API example | | -------------- | ------------------------------------ | -| Traffic Source | `net.onramp.type == "device_client"` | +| Traffic Source | `onramp.type == "device_client"` | Available values: `device_client` (Device client), `mesh` (Mesh), `cloudflare_wan` (Cloudflare WAN), `clientless_rdp` (Clientless RDP), `proxy_endpoint` (Proxy endpoint), `agentless_biso` (Clientless Browser Isolation), `mcp_portal` (MCP portal). @@ -841,7 +843,7 @@ The query of a webpage's URL. ## Comparison operators diff --git a/src/content/docs/cloudflare-one/traffic-controls/network-policies/index.mdx b/src/content/docs/cloudflare-one/traffic-controls/network-policies/index.mdx index 6382a8509db..c6c08b69029 100644 --- a/src/content/docs/cloudflare-one/traffic-controls/network-policies/index.mdx +++ b/src/content/docs/cloudflare-one/traffic-controls/network-policies/index.mdx @@ -208,6 +208,8 @@ Gateway will only log successful override connections in your [network logs](/cl ## Selectors +Examples use [canonical selector names](/cloudflare-one/traffic-controls/canonical-selectors/). Existing expressions using the corresponding legacy names remain supported. No migration is required. + Gateway matches network traffic against the following selectors, or criteria. ### Access Infrastructure Target @@ -238,14 +240,14 @@ Whether the current session is running inside [Remote Browser Isolation](/cloudf | UI name | API example | | ----------------- | ------------------------- | -| Browser Isolation | `net.is_isolated == true` | +| Browser Isolation | `is_isolated == true` | ### Content Categories ### Destination Continent @@ -269,7 +271,7 @@ Whether the current session is running inside [Remote Browser Isolation](/cloudf ### Destination Port @@ -305,7 +307,7 @@ To enable Gateway filtering on TCP and UDP, go to **Traffic controls** > **Traff ### SNI @@ -341,7 +343,7 @@ The country of the user making the request. ### Source IP @@ -349,7 +351,7 @@ The country of the user making the request. ### Source Port @@ -362,7 +364,7 @@ The method used to off-ramp traffic from Cloudflare. Use this selector to apply | UI name | API example | | ------------------- | -------------------------------- | -| Traffic Destination | `net.offramp.type == "internet"` | +| Traffic Destination | `offramp.type == "internet"` | Available values: `internet` (Internet), `cloudflare_wan` (Cloudflare WAN), `cloudflare_tunnel` (Cloudflare Tunnel), `device_client` (Cloudflare One Client), `mesh` (Mesh). @@ -372,7 +374,7 @@ The method used to on-ramp traffic to Cloudflare. Use this selector to apply pol | UI name | API example | | -------------- | ------------------------------------ | -| Traffic Source | `net.onramp.type == "device_client"` | +| Traffic Source | `onramp.type == "device_client"` | Available values: `device_client` (Device client), `mesh` (Mesh), `cloudflare_wan` (Cloudflare WAN), `clientless_rdp` (Clientless RDP), `proxy_endpoint` (Proxy endpoint), `agentless_biso` (Clientless Browser Isolation), `mcp_portal` (MCP portal). @@ -385,7 +387,7 @@ Available values: `device_client` (Device client), `mesh` (Mesh), `cloudflare_wa ## Comparison operators diff --git a/src/content/docs/cloudflare-one/traffic-controls/resolver-policies.mdx b/src/content/docs/cloudflare-one/traffic-controls/resolver-policies.mdx index c25ba8f7027..1b7565a3bd1 100644 --- a/src/content/docs/cloudflare-one/traffic-controls/resolver-policies.mdx +++ b/src/content/docs/cloudflare-one/traffic-controls/resolver-policies.mdx @@ -145,6 +145,8 @@ The `egress` object uses the same schema as [egress policies](/cloudflare-one/tr ## Selectors +Examples use [canonical selector names](/cloudflare-one/traffic-controls/canonical-selectors/). Existing expressions using the corresponding legacy names remain supported. No migration is required. + ### Content Categories ### Host @@ -173,7 +175,7 @@ The `egress` object uses the same schema as [egress policies](/cloudflare-one/tr ### Location diff --git a/src/content/partials/cloudflare-one/gateway/selectors/destination-continent.mdx b/src/content/partials/cloudflare-one/gateway/selectors/destination-continent.mdx index dcd5b42ecab..78e761fe0f8 100644 --- a/src/content/partials/cloudflare-one/gateway/selectors/destination-continent.mdx +++ b/src/content/partials/cloudflare-one/gateway/selectors/destination-continent.mdx @@ -18,4 +18,4 @@ The continent where the request is destined. Geolocation is determined from the | UI name | API example | | ------------------------------------ | ---------------------------------------------- | -| Destination Continent IP Geolocation | {props.one}.geo.continent == "EU" | +| Destination Continent IP Geolocation | ip.dst.continent == "EU" | diff --git a/src/content/partials/cloudflare-one/gateway/selectors/destination-country.mdx b/src/content/partials/cloudflare-one/gateway/selectors/destination-country.mdx index 9fb4a6872e2..280500504be 100644 --- a/src/content/partials/cloudflare-one/gateway/selectors/destination-country.mdx +++ b/src/content/partials/cloudflare-one/gateway/selectors/destination-country.mdx @@ -9,4 +9,4 @@ The country that the request is destined for. Geolocation is determined from the | UI name | API example | | ---------------------------------- | ------------------------ | -| Destination Country IP Geolocation | {props.one}.geo.country == "RU" | +| Destination Country IP Geolocation | ip.dst.country == "RU" | diff --git a/src/content/partials/cloudflare-one/gateway/selectors/destination-ip.mdx b/src/content/partials/cloudflare-one/gateway/selectors/destination-ip.mdx index db10a220b95..4cd92c8e55a 100644 --- a/src/content/partials/cloudflare-one/gateway/selectors/destination-ip.mdx +++ b/src/content/partials/cloudflare-one/gateway/selectors/destination-ip.mdx @@ -7,4 +7,4 @@ The IP address of the request's target. | UI name | API example | | -------------- | ---------------------------------------------------------- | -| Destination IP | any({props.APIendpoint}[*] in \{10.0.0.0/8\}) | +| Destination IP | {props.APIendpoint} in \{198.51.100.0/24\} | diff --git a/src/content/partials/cloudflare-one/gateway/selectors/dns-content-categories.mdx b/src/content/partials/cloudflare-one/gateway/selectors/dns-content-categories.mdx index e3424336741..0c651579c6e 100644 --- a/src/content/partials/cloudflare-one/gateway/selectors/dns-content-categories.mdx +++ b/src/content/partials/cloudflare-one/gateway/selectors/dns-content-categories.mdx @@ -6,4 +6,4 @@ Use this selector to filter domains belonging to specific [content categories](/ | UI name | API example | Evaluation phase | | ------------------ | ------------------------------------- | --------------------- | -| Content Categories | `any(dns.content_category[*] in {1})` | Before DNS resolution | +| Content Categories | `any(content_categories[*] in {1})` | Before DNS resolution | diff --git a/src/content/partials/cloudflare-one/gateway/selectors/security-categories.mdx b/src/content/partials/cloudflare-one/gateway/selectors/security-categories.mdx index 1a3ac6cadba..be86133fb4a 100644 --- a/src/content/partials/cloudflare-one/gateway/selectors/security-categories.mdx +++ b/src/content/partials/cloudflare-one/gateway/selectors/security-categories.mdx @@ -7,4 +7,4 @@ Use this selector to match domains (and optionally, [IP addresses](/cloudflare-o | UI name | API example | Evaluation phase | | ------------------- | -------------------------------------- | --------------------- | -| Security Categories | `any(dns.security_category[*] in {1})` | Before DNS resolution | +| Security Categories | `any(security_categories[*] in {1})` | Before DNS resolution | diff --git a/src/content/partials/cloudflare-one/gateway/selectors/source-continent-dns.mdx b/src/content/partials/cloudflare-one/gateway/selectors/source-continent-dns.mdx index 5eb340f2783..2f2bc1d7c86 100644 --- a/src/content/partials/cloudflare-one/gateway/selectors/source-continent-dns.mdx +++ b/src/content/partials/cloudflare-one/gateway/selectors/source-continent-dns.mdx @@ -18,4 +18,4 @@ Geolocation is determined from the device's public IP address (typically assigne | UI name | API example | Evaluation phase | | ------------------------------- | --------------------------------------------------------- | --------------------- | -| Source Continent IP Geolocation | {props.one}.geo.continent == "North America" | Before DNS resolution | +| Source Continent IP Geolocation | ip.src.continent == "North America" | Before DNS resolution | diff --git a/src/content/partials/cloudflare-one/gateway/selectors/source-continent-http.mdx b/src/content/partials/cloudflare-one/gateway/selectors/source-continent-http.mdx index 9a306b7280a..5cb5d54ca89 100644 --- a/src/content/partials/cloudflare-one/gateway/selectors/source-continent-http.mdx +++ b/src/content/partials/cloudflare-one/gateway/selectors/source-continent-http.mdx @@ -18,4 +18,4 @@ Geolocation is determined from the device's public IP address (typically assigne | UI name | API example | | ------------------------------- | --------------------------------------------------------- | -| Source Continent IP Geolocation | {props.one}.geo.continent == "North America" | +| Source Continent IP Geolocation | ip.src.continent == "North America" | diff --git a/src/content/partials/cloudflare-one/gateway/selectors/source-country-dns.mdx b/src/content/partials/cloudflare-one/gateway/selectors/source-country-dns.mdx index f770cd8258d..87ff144996b 100644 --- a/src/content/partials/cloudflare-one/gateway/selectors/source-country-dns.mdx +++ b/src/content/partials/cloudflare-one/gateway/selectors/source-country-dns.mdx @@ -9,4 +9,4 @@ Geolocation is determined from the device's public IP address (typically assigne | UI name | API example | Evaluation phase | | ----------------------------- | ------------------------ | --------------------- | -| Source Country IP Geolocation | {props.one}.geo.country == "RU" | Before DNS resolution | +| Source Country IP Geolocation | ip.src.country == "RU" | Before DNS resolution | diff --git a/src/content/partials/cloudflare-one/gateway/selectors/source-country-http.mdx b/src/content/partials/cloudflare-one/gateway/selectors/source-country-http.mdx index bea70cb9423..b72f4208498 100644 --- a/src/content/partials/cloudflare-one/gateway/selectors/source-country-http.mdx +++ b/src/content/partials/cloudflare-one/gateway/selectors/source-country-http.mdx @@ -9,4 +9,4 @@ Geolocation is determined from the device's public IP address (typically assigne | UI name | API example | | ----------------------------- | ------------------------ | -| Source Country IP Geolocation | {props.one}.geo.country == "RU" | +| Source Country IP Geolocation | ip.src.country == "RU" | diff --git a/src/content/partials/cloudflare-one/gateway/selectors/source-ip-dns.mdx b/src/content/partials/cloudflare-one/gateway/selectors/source-ip-dns.mdx index 135f98ad365..7f6f60bd38e 100644 --- a/src/content/partials/cloudflare-one/gateway/selectors/source-ip-dns.mdx +++ b/src/content/partials/cloudflare-one/gateway/selectors/source-ip-dns.mdx @@ -7,4 +7,4 @@ Use this selector to apply policies to the source IP address of DNS queries. For | UI name | API example | Evaluation phase | | --------- | ---------------------------- | --------------------- | -| Source IP | `dns.src_ip == 198.51.100.0` | Before DNS resolution | +| Source IP | `ip.src == 198.51.100.0` | Before DNS resolution |