Skip to content

Commit

Permalink
Update categories
Browse files Browse the repository at this point in the history
  • Loading branch information
maxvp committed Nov 1, 2024
1 parent 14a6286 commit 72de36f
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,9 @@ When using Terraform to create a policy with the [Do Not Inspect](#do-not-inspec

### Content Categories

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

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

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

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

| UI name | API example |
| ------- | ----------------------------------------- |
| Host | `http.request.host == "test.example.com"` |
| UI name | API example |
| ------- | ------------------------------------------ |
| Host | `http.conn.hostname == "test.example.com"` |

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

### Security Risks

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

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

Expand Down

0 comments on commit 72de36f

Please sign in to comment.