Skip to content

Commit a6ed729

Browse files
committed
Rename page
1 parent b41d098 commit a6ed729

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

public/_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,6 +1643,7 @@
16431643
/cloudflare-one/identity/users/short-lived-certificates/ /cloudflare-one/connections/connect-networks/use-cases/ssh/ssh-infrastructure-access/ 301
16441644
/cloudflare-one/identity/users/validating-json/ /cloudflare-one/identity/authorization-cookie/validating-json/ 301
16451645
/cloudflare-one/policies/lists/ /cloudflare-one/policies/gateway/lists 301
1646+
/cloudflare-one/policies/gateway/dns-policies/scheduled-dns-policies/ /cloudflare-one/policies/gateway/timed-dns-policies/#scheduled-policies 301
16461647
/cloudflare-one/policies/zero-trust/ /cloudflare-one/policies/access/ 301
16471648
/cloudflare-one/policies/zero-trust/app-paths/ /cloudflare-one/policies/access/app-paths/ 301
16481649
/cloudflare-one/policies/zero-trust/common-configs/ /cloudflare-one/policies/access/ 301
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
---
22
pcx_content_type: reference
3-
title: Scheduled DNS policies
3+
title: Timed DNS policies
44
sidebar:
55
order: 3
6-
76
---
87

98
Cloudflare Gateway allows you to configure any DNS policy to activate or deactivate on a regular time interval.
109

10+
## Scheduled policies
11+
1112
By default, Gateway policies are unscheduled and apply at all times. You can use the [Gateway Rules API](/api/operations/zero-trust-gateway-rules-create-zero-trust-gateway-rule) to create a new DNS policy with a schedule or add a schedule to an existing policy. To schedule a policy, send a [`POST`](/api/operations/zero-trust-gateway-rules-create-zero-trust-gateway-rule) or [`PUT`](/api/operations/zero-trust-gateway-rules-update-zero-trust-gateway-rule) request with the `schedule` parameter set to your desired days of the week, times of day, and an optional time zone. The schedule will appear in Zero Trust under **Gateway** > **Firewall Policies** > **DNS** when you expand the row for the policy.
1213

13-
## How Gateway determines time zone
14+
### How Gateway determines time zone
1415

1516
If you [assign a time zone](#example-fixed-time-zone) to your schedule, Gateway will always use the current time at that time zone regardless of the user's location. This allows you to enable a policy during a certain fixed time period.
1617

1718
If you [do not specify a time zone](#example-users-time-zone), Gateway will enable the DNS policy based on the user's local time zone. The user's time zone is inferred from the IP geolocation of their source IP address. If Gateway is unable to determine the time zone from the source IP, we will fall back to the time zone of the data center where the query was received.
1819

19-
### Example: Fixed time zone
20+
#### Example: Fixed time zone
2021

2122
The following command creates a DNS policy to block `facebook.com` only on weekdays from 8:00 AM - 12:30 PM and 1:30 PM - 5:00 PM in the Chicago, USA time zone.
2223

@@ -43,7 +44,7 @@ curl "https://api.cloudflare.com/client/v4/accounts/{account_id}/gateway/rules"
4344

4445
Refer to [this table](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) for a list of all time zones.
4546

46-
### Example: User's time zone
47+
#### Example: User's time zone
4748

4849
The following command creates a DNS policy to block `clockin.com` only on weekends, in the time zone where the user is currently located.
4950

@@ -66,5 +67,5 @@ curl "https://api.cloudflare.com/client/v4/accounts/{account_id}/gateway/rules"
6667

6768
:::note
6869

69-
Gateway will not change the policy's `enabled` status when inside or outside of the time period specified. When enabled, Gateway activates or deactivates the policy according to its schedule. When disabled, the policy is always deactivated.
70+
Gateway will not change the policy's `enabled` status when inside or outside of the time period specified. When enabled, Gateway activates or deactivates the policy according to its schedule. When disabled, the policy is always deactivated.
7071
:::

0 commit comments

Comments
 (0)