Skip to content

Commit

Permalink
Fix broken block page links
Browse files Browse the repository at this point in the history
  • Loading branch information
maxvp committed Oct 17, 2024
1 parent ce9f4a0 commit 8bf2499
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ The **Untrusted certificate action** determines how to handle insecure requests.
| Option | Action |
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Error | Display Gateway error page. Matches the default behavior when no action is configured. |
| Block | Display [block page](/cloudflare-one/policies/gateway/configuring-block-page/) as set in Zero Trust. |
| Block | Display [block page](/cloudflare-one/policies/gateway/block-page/) as set in Zero Trust. |
| Pass through | Bypass insecure connection warnings and seamlessly connect to the upstream. To use this feature, deploy a [custom root certificate](/cloudflare-one/connections/connect-devices/warp/user-side-certificates/custom-certificate/). For more information on what statuses are bypassed, refer to the [troubleshooting FAQ](/cloudflare-one/faq/troubleshooting/#i-see-error-526-when-browsing-to-a-website). |

### Block
Expand Down
17 changes: 7 additions & 10 deletions src/content/partials/cloudflare-one/access/block-page.mdx
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
---
{}

---

:::note

Only available on Pay-as-you-go and Enterprise plans.
Only available on Pay-as-you-go and Enterprise plans.
:::

You can display a custom block page when users fail to authenticate to an Access application. Each application can have a different block page.

:::note

To customize the page that users see when they are blocked by a Gateway firewall policy, refer to [Gateway block page](/cloudflare-one/policies/gateway/configuring-block-page/).
To customize the page that users see when they are blocked by a Gateway firewall policy, refer to [Gateway block page](/cloudflare-one/policies/gateway/block-page/).
:::

## Create a custom block page
Expand All @@ -34,15 +33,13 @@ To create a custom block page for Access:
7. In **Custom HTML**, enter the HTML code for your custom page. For example,

```html
<!DOCTYPE html>
<!doctype html>
<html>
<body>

<h1>Access denied.</h1>

<p>To obtain access, contact your IT administrator.</p>
<body>
<h1>Access denied.</h1>

</body>
<p>To obtain access, contact your IT administrator.</p>
</body>
</html>
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
{}

---

You can customize the block page by making global changes that will show up every time a user visits a block page, independently of the type of rule (DNS or HTTP) that is blocking the website.
Expand All @@ -13,12 +12,12 @@ To apply customizations to your block page:

3. Select **Customize**. Available global customizations include:

* Adding your organization's name
* Adding a [logo](/cloudflare-one/policies/gateway/configuring-block-page/#add-a-logo-image)
* Adding a header text
* Adding a global block message, which will be displayed above the policy-specific block message
* Adding a [Mailto link](/cloudflare-one/policies/gateway/configuring-block-page/#allow-users-to-email-an-administrator)
* Choosing a background color
- Adding your organization's name
- Adding a [logo](/cloudflare-one/policies/gateway/block-page/#add-a-logo-image)
- Adding a header text
- Adding a global block message, which will be displayed above the policy-specific block message
- Adding a [Mailto link](/cloudflare-one/policies/gateway/block-page/#allow-users-to-email-an-administrator)
- Choosing a background color

4. Select **Save**.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { Markdown } from "~/components";
| Access: Apps and Policies Revoke | Grants ability to revoke all tokens to [Cloudflare Access](/cloudflare-one/policies/access/) account resources. |
| Access: Apps and Policies {props.one} | Grants write access to [Cloudflare Access](/cloudflare-one/policies/access/) account resources. |
| Access: Audit Logs Read | Grants read access to [Cloudflare Access audit logs](/cloudflare-one/insights/logs/audit-logs/). |
| Access: Custom Pages Read | Grants read access to [Cloudflare Access Custom Pages](/cloudflare-one/policies/gateway/configuring-block-page/). |
| Access: Custom Pages {props.one} | Grants write access to [Cloudflare Access Custom Pages](/cloudflare-one/policies/gateway/configuring-block-page/). |
| Access: Custom Pages Read | Grants read access to [Cloudflare Access Custom Pages](/cloudflare-one/policies/gateway/block-page/). |
| Access: Custom Pages {props.one} | Grants write access to [Cloudflare Access Custom Pages](/cloudflare-one/policies/gateway/block-page/). |
| Access: Device Posture Read | Grants read access to [Cloudflare Access Device Posture](/cloudflare-one/identity/devices/). |
| Access: Device Posture {props.one} | Grants write access to [Cloudflare Access Device Posture](/cloudflare-one/identity/devices/). |
| Access: Mutual TLS Certificates Read | Grants read access to [Cloudflare Access mTLS certificates](/cloudflare-one/identity/devices/access-integrations/mutual-tls-authentication/). |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ To customize the default settings:

5. Under **Global settings**,
1. (Recommended) Enable **Admin override code** if you turned on **Lock WARP switch**.
2. Enable **Install CA to system certificate store** if you want users to see a [custom block page](/cloudflare-one/policies/gateway/configuring-block-page/).
2. Enable **Install CA to system certificate store** if you want users to see a [custom block page](/cloudflare-one/policies/gateway/block-page/).

</TabItem>

Expand Down

0 comments on commit 8bf2499

Please sign in to comment.