Skip to content

Commit 8a53c89

Browse files
committed
Add non-latin characters partial to selector entries
1 parent 791ed4b commit 8a53c89

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

src/content/partials/cloudflare-one/gateway/selectors/domain.mdx

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

6+
import { Render } from "~/components";
7+
68
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`.
79

810
| UI name | API example | Evaluation phase |
911
| ------- | --------------------------------------------------------- | --------------------- |
1012
| Domain | <code>any({props.APIendpoint}[*] == "example.com")</code> | Before DNS resolution |
13+
14+
<Render
15+
file="gateway/selectors/non-latin-characters"
16+
params={{ inputType: "domain" }}
17+
/>

src/content/partials/cloudflare-one/gateway/selectors/host.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ params:
33
- APIendpoint
44
---
55

6+
import { Render } from "~/components";
7+
68
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`.
79

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

12-
Gateway does not support non-Latin characters. To use a hostname with non-Latin characters, add it to a [list](/cloudflare-one/policies/gateway/lists/).
14+
<Render
15+
file="gateway/selectors/non-latin-characters"
16+
params={{ inputType: "hostname" }}
17+
/>
1318

1419
:::note
1520
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.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
params:
3+
- inputType
4+
---
5+
6+
Gateway policies do not support {props.inputType}s with non-Latin characters directly. To use a {props.inputType} with non-Latin characters, add it to a [list](/cloudflare-one/policies/gateway/lists/).

0 commit comments

Comments
 (0)