Skip to content

Commit 72de36f

Browse files
committed
Update categories
1 parent 14a6286 commit 72de36f

File tree

1 file changed

+9
-9
lines changed
  • src/content/docs/cloudflare-one/policies/gateway/http-policies

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,9 @@ When using Terraform to create a policy with the [Do Not Inspect](#do-not-inspec
407407

408408
### Content Categories
409409

410-
| UI name | API example |
411-
| ------------------ | ------------------------------------------------------- |
412-
| Content Categories | `not(any(http.request.uri.content_category[*] in {1}))` |
410+
| UI name | API example |
411+
| ------------------ | ------------------------------------------------ |
412+
| Content Categories | `not(any(http.conn.content_category[*] in {1}))` |
413413

414414
For more information, refer to our list of [content categories](/cloudflare-one/policies/gateway/domain-categories/#content-categories).
415415

@@ -540,9 +540,9 @@ Scans HTTP traffic for the presence of social security numbers and other PII. Yo
540540

541541
Use this selector to match only the hostname specified -- for example, if you want to block `test.example.com` but not `example.com` or `www.test.example.com`.
542542

543-
| UI name | API example |
544-
| ------- | ----------------------------------------- |
545-
| Host | `http.request.host == "test.example.com"` |
543+
| UI name | API example |
544+
| ------- | ------------------------------------------ |
545+
| Host | `http.conn.hostname == "test.example.com"` |
546546

547547
:::note
548548
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.
@@ -566,9 +566,9 @@ Some hostnames (`example.com`) will invisibly redirect to the www subdomain (`ww
566566

567567
### Security Risks
568568

569-
| UI name | API example |
570-
| -------------- | ------------------------------------------ |
571-
| Security Risks | `any(http.request.uri.category[*] in {1})` |
569+
| UI name | API example |
570+
| -------------- | -------------------------------------------- |
571+
| Security Risks | `any(http.conn.security_category[*] in {1})` |
572572

573573
For more information, refer to our list of [security categories](/cloudflare-one/policies/gateway/domain-categories/#security-categories).
574574

0 commit comments

Comments
 (0)