Skip to content

Commit 56cac93

Browse files
committed
Update host selector partial
1 parent db579b1 commit 56cac93

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

src/content/docs/cloudflare-one/policies/gateway/dns-policies/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ Use this selector to filter DNS responses by their `TXT` records.
354354

355355
### Host
356356

357-
<Render file="gateway/selectors/host" />
357+
<Render file="gateway/selectors/host" params={{ APIendpoint: "dns.fqdn" }} />
358358

359359
### Indicator Feeds
360360

src/content/docs/cloudflare-one/policies/gateway/egress-policies/index.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ Gateway matches egress traffic against the following selectors, or criteria:
110110

111111
### Host <Badge text="Beta" variant="caution"/>
112112

113-
<Render file="gateway/selectors/host" />
113+
<Render
114+
file="gateway/selectors/host"
115+
params={{ APIendpoint: "net.fqdn.host" }}
116+
/>
114117

115118
<Render file="gateway/selectors/egress-selector-limitation" />
116119

src/content/docs/cloudflare-one/policies/gateway/resolver-policies.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ For more information on creating a DNS policy, refer to [DNS policies](/cloudfla
112112

113113
### Host
114114

115-
<Render file="gateway/selectors/host" />
115+
<Render file="gateway/selectors/host" params={{ APIendpoint: "dns.fqdn" }} />
116116

117117
### Location
118118

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
2-
{}
2+
params:
3+
- APIendpoint
34
---
45

56
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`.
67

7-
| UI name | API example | Evaluation phase |
8-
| ------- | -------------------------------- | --------------------- |
9-
| Host | `dns.fqdn == "test.example.com"` | Before DNS resolution |
8+
| UI name | API example | Evaluation phase |
9+
| ------- | --------------------------------------------------- | --------------------- |
10+
| Host | <code>{props.APIendpoint} == \"example.com\"</code> | Before DNS resolution |

src/content/partials/cloudflare-one/gateway/selectors/net-http-content-categories.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ params:
33
- APIendpoint
44
---
55

6-
import { Markdown } from "~/components";
7-
86
| UI name | API example |
97
| ------------------ | ------------------------------------------------- |
108
| Content Categories | <code>any({props.APIendpoint}[*] in \{1\})</code> |

0 commit comments

Comments
 (0)