Skip to content

Commit 6179ef8

Browse files
authored
[Gateway] Google Translate proxy common policy (#24921)
1 parent e5ab31b commit 6179ef8

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,40 @@ Block file downloads from Gmail.
467467

468468
</TabItem> </Tabs>
469469

470+
### Block Google Translate proxy
471+
472+
Block use of Google Translate to translate entire webpages.
473+
474+
When translating a website, Google Translate proxies webpages with the `translate.goog` domain. Your users may be able to use this service to bypass other Gateway policies. If you block `translate.goog`, users will still be able to access other Google Translate features.
475+
476+
<Tabs syncKey="dashPlusAPI"> <TabItem label="Dashboard">
477+
478+
| Selector | Operator | Value | Action |
479+
| -------- | ------------- | -------------------------- | ------ |
480+
| Domain | matches regex | `^(.+\.)?translate\.goog$` | Block |
481+
482+
</TabItem>
483+
484+
<TabItem label="API">
485+
486+
<APIRequest
487+
path="/accounts/{account_id}/gateway/rules"
488+
method="POST"
489+
json={{
490+
name: "Block Google Translate for websites",
491+
description: "Block use of Google Translate to translate entire webpages",
492+
enabled: true,
493+
action: "block",
494+
filters: ["http"],
495+
traffic:
496+
'any(http.request.domains[*] matches "^(.+\\.)?translate\\.goog$")',
497+
identity: "",
498+
device_posture: "",
499+
}}
500+
/>
501+
502+
</TabItem> </Tabs>
503+
470504
## Filter WebSocket traffic
471505

472506
Gateway does not inspect or log [WebSocket](https://datatracker.ietf.org/doc/html/rfc6455) traffic. Instead, Gateway will only log the HTTP details used to make the WebSocket connection, as well as [network session information](/logs/logpush/logpush-job/datasets/account/zero_trust_network_sessions/). To filter your WebSocket traffic, create a policy with the `101` HTTP response code.

0 commit comments

Comments
 (0)