Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ Gateway matches DNS queries against the following selectors, or criteria:
### Application

<Render
file="gateway/selectors/application"
file="gateway/selectors/application-dns"
product="cloudflare-one"
params={{ policyType: "DNS" }}
/>
Expand Down Expand Up @@ -358,15 +358,15 @@ Use this selector to filter DNS responses by their `TXT` records.
### Domain

<Render
file="gateway/selectors/domain"
file="gateway/selectors/domain-dns"
product="cloudflare-one"
params={{ APIendpoint: "dns.domains" }}
/>

### Host

<Render
file="gateway/selectors/host"
file="gateway/selectors/host-dns"
product="cloudflare-one"
params={{ APIendpoint: "dns.fqdn" }}
/>
Expand Down Expand Up @@ -440,19 +440,19 @@ Use this selector to match a dynamic list of [category IDs](/cloudflare-one/poli

### Source Continent

Use this selector to filter based on the continent where the query arrived to Gateway from. <Render file="gateway/selectors/source-continent" product="cloudflare-one" params={{ one: "dns.src" }} />
Use this selector to filter based on the continent where the query arrived to Gateway from. <Render file="gateway/selectors/source-continent-dns" product="cloudflare-one" params={{ one: "dns.src" }} />

### Source Country

Use this selector to filter based on the country where the query arrived to Gateway from. <Render file="gateway/selectors/source-country" product="cloudflare-one" params={{ one: "dns.src" }} />
Use this selector to filter based on the country where the query arrived to Gateway from. <Render file="gateway/selectors/source-country-dns" product="cloudflare-one" params={{ one: "dns.src" }} />

### Source IP

<Render file="gateway/selectors/source-ip-dns" product="cloudflare-one" />
<Render file="gateway/selectors/source-ip-resolver" product="cloudflare-one" />

### Users

<Render file="gateway/selectors/users" product="cloudflare-one" />
<Render file="gateway/selectors/users-dns" product="cloudflare-one" />

## Comparison operators

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Gateway matches egress traffic against the following selectors, or criteria:
### Application <Badge text="Beta" variant="caution"/>

<Render
file="gateway/selectors/application"
file="gateway/selectors/application-http"
product="cloudflare-one"
params={{ policyType: "egress" }}
/>
Expand Down Expand Up @@ -127,7 +127,7 @@ Gateway matches egress traffic against the following selectors, or criteria:
### Domain <Badge text="Beta" variant="caution"/>

<Render
file="gateway/selectors/domain"
file="gateway/selectors/domain-http"
product="cloudflare-one"
params={{ APIendpoint: "net.fqdn.domains" }}
/>
Expand All @@ -140,7 +140,7 @@ Gateway matches egress traffic against the following selectors, or criteria:
### Host <Badge text="Beta" variant="caution"/>

<Render
file="gateway/selectors/host"
file="gateway/selectors/host-http"
product="cloudflare-one"
params={{ APIendpoint: "net.fqdn.host" }}
/>
Expand All @@ -160,11 +160,11 @@ Gateway matches egress traffic against the following selectors, or criteria:

### Source Continent

The continent of the user making the request. <Render file="gateway/selectors/source-continent" product="cloudflare-one" params={{ one: "net.src" }} />
The continent of the user making the request. <Render file="gateway/selectors/source-continent-http" product="cloudflare-one" params={{ one: "net.src" }} />

### Source Country

The country of the user making the request. <Render file="gateway/selectors/source-country" product="cloudflare-one" params={{ one: "net.src" }} />
The country of the user making the request. <Render file="gateway/selectors/source-country-http" product="cloudflare-one" params={{ one: "net.src" }} />

### Source Internal IP

Expand All @@ -188,7 +188,7 @@ The country of the user making the request. <Render file="gateway/selectors/sour

### Users

<Render file="gateway/selectors/users" product="cloudflare-one" />
<Render file="gateway/selectors/users-http" product="cloudflare-one" />

### Virtual Network

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ The review approval status of an application from [Shadow IT Discovery](/cloudfl
### Application

<Render
file="gateway/selectors/application"
file="gateway/selectors/application-http"
product="cloudflare-one"
params={{ policyType: "HTTP" }}
/>
Expand Down Expand Up @@ -495,7 +495,7 @@ Only applies to traffic sent through the [WARP client](/cloudflare-one/connectio
### Domain

<Render
file="gateway/selectors/domain"
file="gateway/selectors/domain-http"
product="cloudflare-one"
params={{ APIendpoint: "http.conn.domains" }}
/>
Expand Down Expand Up @@ -622,7 +622,7 @@ Use [Cloudflare Data Loss Prevention (DLP)](/cloudflare-one/policies/data-loss-p
### Host

<Render
file="gateway/selectors/host"
file="gateway/selectors/host-http"
product="cloudflare-one"
params={{ APIendpoint: "http.conn.hostname" }}
/>
Expand Down Expand Up @@ -657,11 +657,11 @@ The HTTP response status code received by the traffic.

### Source Continent

The continent of the user making the request. <Render file="gateway/selectors/source-continent" product="cloudflare-one" params={{ one: "http.src_ip" }} />
The continent of the user making the request. <Render file="gateway/selectors/source-continent-http" product="cloudflare-one" params={{ one: "http.src_ip" }} />

### Source Country

The country of the user making the request. <Render file="gateway/selectors/source-country" product="cloudflare-one" params={{ one: "http.src_ip" }} />
The country of the user making the request. <Render file="gateway/selectors/source-country-http" product="cloudflare-one" params={{ one: "http.src_ip" }} />

### Source Internal IP

Expand Down Expand Up @@ -713,7 +713,7 @@ The query of a webpage's URL.

### Users

<Render file="gateway/selectors/users" product="cloudflare-one" />
<Render file="gateway/selectors/users-http" product="cloudflare-one" />

### Virtual Network

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ Gateway matches network traffic against the following selectors, or criteria.
### Application

<Render
file="gateway/selectors/application"
file="gateway/selectors/application-http"
product="cloudflare-one"
params={{ policyType: "network" }}
/>
Expand Down Expand Up @@ -355,11 +355,11 @@ By default, this selector only applies to HTTPS traffic on port `443`. To inspec

### Source Continent

The continent of the user making the request. <Render file="gateway/selectors/source-continent" product="cloudflare-one" params={{ one: "net.src" }} />
The continent of the user making the request. <Render file="gateway/selectors/source-continent-http" product="cloudflare-one" params={{ one: "net.src" }} />

### Source Country

The country of the user making the request. <Render file="gateway/selectors/source-country" product="cloudflare-one" params={{ one: "net.src" }} />
The country of the user making the request. <Render file="gateway/selectors/source-country-http" product="cloudflare-one" params={{ one: "net.src" }} />

### Source Internal IP

Expand All @@ -383,7 +383,7 @@ The country of the user making the request. <Render file="gateway/selectors/sour

### Users

<Render file="gateway/selectors/users" product="cloudflare-one" />
<Render file="gateway/selectors/users-http" product="cloudflare-one" />

### Virtual Network

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ For more information on creating a DNS policy, refer to [DNS policies](/cloudfla
### Domain

<Render
file="gateway/selectors/domain"
file="gateway/selectors/domain-dns"
product="cloudflare-one"
params={{ APIendpoint: "dns.domains" }}
/>

### Host

<Render
file="gateway/selectors/host"
file="gateway/selectors/host-dns"
product="cloudflare-one"
params={{ APIendpoint: "dns.fqdn" }}
/>
Expand All @@ -138,19 +138,19 @@ For more information on creating a DNS policy, refer to [DNS policies](/cloudfla

### Source Continent

Use this selector to filter based on the continent where the query arrived to Gateway from. <Render product="cloudflare-one" file="gateway/selectors/source-continent" params={{ one: "dns.src" }} />
Use this selector to filter based on the continent where the query arrived to Gateway from. <Render product="cloudflare-one" file="gateway/selectors/source-continent-dns" params={{ one: "dns.src" }} />

### Source Country

Use this selector to filter based on the country where the query arrived to Gateway from. <Render product="cloudflare-one" file="gateway/selectors/source-country" params={{ one: "dns.src" }} />
Use this selector to filter based on the country where the query arrived to Gateway from. <Render product="cloudflare-one" file="gateway/selectors/source-country-dns" params={{ one: "dns.src" }} />

### Source IP

<Render file="gateway/selectors/source-ip-dns" product="cloudflare-one" />
<Render file="gateway/selectors/source-ip-resolver" product="cloudflare-one" />

### Users

<Render file="gateway/selectors/users" product="cloudflare-one" />
<Render file="gateway/selectors/users-dns" product="cloudflare-one" />

## Comparison operators

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
params:
- policyType
---

You can apply {props.policyType} policies to a growing list of popular web applications. Refer to [Application and app types](/cloudflare-one/policies/gateway/application-app-types/) for more information.

| UI name | API example | Evaluation phase |
| ----------- | -------------------------- | --------------------- |
| Application | `any(app.ids[*] in {505})` | Before DNS resolution |
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
params:
- policyType
---

You can apply {props.policyType} policies to a growing list of popular web applications. Refer to [Application and app types](/cloudflare-one/policies/gateway/application-app-types/) for more information.

| UI name | API example |
| ----------- | -------------------------- |
| Application | `any(app.ids[*] in {505})` |
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
params:
- APIendpoint
---

import { Render } from "~/components";

Use this selector to match against a domain and all subdomains. For example, you can match `example.com` and its subdomains, such as `www.example.com`.

| UI name | API example | Evaluation phase |
| ------- | --------------------------------------------------------- | --------------------- |
| Domain | <code>any({props.APIendpoint}[*] == "example.com")</code> | Before DNS resolution |

<Render
file="gateway/selectors/non-latin-characters"
product="cloudflare-one"
params={{ inputType: "domain" }}
/>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
params:
- APIendpoint
---

import { Render } from "~/components";

Use this selector to match against a domain and all subdomains. For example, you can match `example.com` and its subdomains, such as `www.example.com`.

| UI name | API example |
| ------- | --------------------------------------------------------- |
| Domain | <code>any({props.APIendpoint}[*] == "example.com")</code> |

<Render
file="gateway/selectors/non-latin-characters"
product="cloudflare-one"
params={{ inputType: "domain" }}
/>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
params:
- APIendpoint
---

import { Render } from "~/components";

Use this selector to match against only the hostname specified. For example, you can match `test.example.com` but not `example.com` or `www.test.example.com`.

| UI name | API example | Evaluation phase |
| ------- | --------------------------------------------------- | --------------------- |
| Host | <code>{props.APIendpoint} == \"example.com\"</code> | Before DNS resolution |

<Render
file="gateway/selectors/non-latin-characters"
product="cloudflare-one"
params={{ inputType: "hostname" }}
/>

:::note
Some hostnames (`example.com`) will invisibly redirect to the www subdomain (`www.example.com`). To match this type of website, use the [Domain](#domain) selector instead of the Host selector.
:::
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
params:
- APIendpoint
---

import { Render } from "~/components";

Use this selector to match against only the hostname specified. For example, you can match `test.example.com` but not `example.com` or `www.test.example.com`.

| UI name | API example |
| ------- | --------------------------------------------------- |
| Host | <code>{props.APIendpoint} == \"example.com\"</code> |

<Render
file="gateway/selectors/non-latin-characters"
product="cloudflare-one"
params={{ inputType: "hostname" }}
/>

:::note
Some hostnames (`example.com`) will invisibly redirect to the www subdomain (`www.example.com`). To match this type of website, use the [Domain](#domain) selector instead of the Host selector.
:::
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
inputParameters: param1
---

import { Markdown } from "~/components";

Geolocation is determined from the device's public IP address (typically assigned by the user's ISP). To specify a continent, enter its two-letter code into the **Value** field:

| Continent | Code |
| ------------- | ---- |
| Africa | `AF` |
| Antarctica | `AN` |
| Asia | `AS` |
| Europe | `EU` |
| North America | `NA` |
| Oceania | `OC` |
| South America | `SA` |
| Tor network | `T1` |

| UI name | API example | Evaluation phase |
| ------------------------------- | --------------------------------------------------------- | --------------------- |
| Source Continent IP Geolocation | <code>{props.one}.geo.continent == "North America"</code> | Before DNS resolution |
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
inputParameters: param1
---

import { Markdown } from "~/components";

Geolocation is determined from the device's public IP address (typically assigned by the user's ISP). To specify a continent, enter its two-letter code into the **Value** field:

| Continent | Code |
| ------------- | ---- |
| Africa | `AF` |
| Antarctica | `AN` |
| Asia | `AS` |
| Europe | `EU` |
| North America | `NA` |
| Oceania | `OC` |
| South America | `SA` |
| Tor network | `T1` |

| UI name | API example |
| ------------------------------- | --------------------------------------------------------- |
| Source Continent IP Geolocation | <code>{props.one}.geo.continent == "North America"</code> |
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
inputParameters: param1

---

import { Markdown } from "~/components"

Geolocation is determined from the device's public IP address (typically assigned by the user's ISP). To specify a country, enter its [ISO 3166-1 Alpha-2 code](https://www.iso.org/obp/ui/#search/code/) in the **Value** field.

| UI name | API example | Evaluation phase |
| ----------------------------- | ------------------------ | --------------------- |
| Source Country IP Geolocation | <code>{props.one}.geo.country == "RU"</code> | Before DNS resolution |
Loading
Loading