Skip to main content

Configuring Block Notification Page on Zenconsole

Published on:
.
2 min read

The Block Notification Page, also known as the Landing Page, is displayed to users when access to a website is blocked by Zenarmor according to the configured security policies.

Zenarmor allows administrators to customize this page to inform users why access to specific websites is restricted. Custom block notification pages help organizations communicate security policies, explain potential risks, and provide a consistent experience for users encountering blocked websites.

Using Zenconsole, administrators can customize the block notification page by editing its HTML template, adding a company logo, inserting dynamic tags, or uploading a custom HTML file.

tip

The Block Notification Page is available for web filtering. When a connection is blocked by application control rules, a block notification page may not be displayed.

On the Block Notification Page settings page, you can perform the following tasks:

  • Enable or disable block notification pages for TLS-encrypted connections.
  • View, edit, copy, or download the current HTML template.
  • Add dynamic tags and a company logo.
  • Upload a custom HTML template.
  • Preview the block notification page.
  • Download the internal CA certificate.

Configuring Block Notification Page​

To configure the Block Notification Page on Zenconsole, follow these steps:

  1. Log in to your Zenconsole account.

  2. Navigate to Settings.

  3. Under Gateway Settings, select the gateway you want to configure.

  4. Click Block Notification Page in the gateway settings menu.

  5. Locate the Configure Block Notification Page section.

    Figure 1. Configuring Block Notification Page on Zenconsole

warning

To display the block notification page correctly, clients on your network should be prevented from using DNS-over-HTTPS (DoH) or DNS-over-TLS (DoT), since this functionality relies on DNS-based filtering.

Users may enable DoH or DoT in their web browsers. To prevent this traffic, you can enable the DNS-over-HTTPS option in Essential Security rules and configure DNS-over-HTTPS and DNS-over-TLS restrictions under Application Control.

Displaying Block Notification Pages for TLS-Encrypted Connections​

The Display Block Notification Pages for TLS encrypted connections option is enabled by default.

When enabled, Zenarmor can display customized block notification pages for supported blocked HTTPS connections.

To change this setting:

  1. Navigate to Gateway Settings → Block Notification Page.
  2. Locate the Display Block Notification Pages for TLS encrypted connections toggle.
  3. Enable or disable the option as needed.

When the option is enabled, the HTML editor and customization tools become available.

warning

Since the default internal CA certificate is not trusted by web browsers, users may encounter a certificate warning, such as NET::ERR_CERT_AUTHORITY_INVALID, when accessing blocked HTTPS websites.

ERR_CERT_AUTHORITY_INVALID warning message

Figure 2. ERR_CERT_AUTHORITY_INVALID warning message

To prevent certificate warnings, install the Zenarmor CA certificate as a trusted root CA certificate on client devices.

For detailed instructions, see Adding Zenarmor Certificate to a Trust Store.

Copying or Downloading Block Notification Page Template​

Zenconsole allows administrators to copy or download the existing HTML template for backup, further customization, or later use.

To copy or download the current template, follow these steps:

  1. Navigate to Gateway Settings → Block Notification Page.

  2. Click the three-dot menu (...) in the upper-right corner of the HTML editor.

  3. Select one of the following options:

    • Copy to Clipboard: Copies the current HTML template to the clipboard.
    • Download: Downloads the current HTML template to your local device.
    • Revert: Reverts changes made to the HTML template.
  4. If you select Download, save the template file to your preferred location.

    Figure 3. Copying or Downloading the Block Notification Page Template

Editing Block Notification Page​

Zenconsole provides a built-in HTML code editor that allows administrators to customize the appearance and content of the block notification page.

You can edit the HTML template, insert dynamic tags, add a company logo, and preview the changes before saving them.

To edit the Block Notification Page:

  1. Navigate to Gateway Settings → Block Notification Page.
  2. Locate the HTML code editor.
  3. Modify the HTML template according to your organization's requirements.
  4. Click Preview to review the updated page.
  5. Click Save to apply your changes.

The editor also includes Undo and Redo controls for managing changes made during editing.

Adding Tag​

Zenconsole supports dynamic tags that can be inserted into the HTML template to display additional information about blocked traffic.

The following tags are available in the editor:

  • Rule App.
  • Rule Username (if possible)
  • Rule Client IP
  • Rule Remote IP
  • Connection Client IP
  • Connection Remote IP
  • Rule App. Category
  • Rule Web Category
  • Rule Based Alert Message

These tags allow administrators to display information such as the application, username, IP addresses, application category, web category, and rule-based alert messages associated with a blocked connection.

For example, to add the Rule Application Category tag to the default landing page template, follow these steps:

  1. Go to the end of line 257 in the HTML editor and press Enter.

  2. Add the following HTML code:

    <tr>
    <td style="text-align:right"><b>Application Category:</b></td>
    <td>__appcat__</td>
    </tr>
  3. Click Preview at the top of the code editor.

  4. Click Show Details to view the application category information.

    Zenconsole - Adding Application Category Tag to Landing Page Template

    Figure 4. Adding Application Category Tag to Landing Page Template

  5. Click Save to apply the changes.

note

The available tags are displayed above the HTML editor. Their values are populated with the corresponding traffic or rule information when applicable.

Zenconsole allows administrators to add a company logo to customize the block notification page.

To add a logo, follow these steps:

  1. Navigate to Gateway Settings → Block Notification Page.

  2. Click Add Logo at the top of the HTML editor. This opens a file explorer.

  3. Select the image file from your local device.

  4. Click Open to upload the logo. The corresponding image content is added to the HTML template.

  5. Click Preview to review the updated landing page.

  6. Click Save to apply the changes.

    Zenconsole - Adding Logo  to Landing Page Template

    Figure 5. Adding Logo to Landing Page Template

Uploading a New Template​

Zenconsole allows administrators to replace the existing block notification page template with a custom HTML file.

To upload a new template, follow these steps:

  1. Navigate to Gateway Settings → Block Notification Page.
  2. Click Upload HTML File at the top of the HTML editor. This opens a file explorer.
  3. Select the HTML template file from your local device.
  4. Click Open to upload the file.
  5. Review the uploaded HTML content in the editor.
  6. Click Preview to check the appearance of the new template.
  7. Click Save to apply the changes.

Downloading CA Certificate​

Zenconsole allows administrators to download the internal Certificate Authority (CA) certificate associated with the selected gateway in both PEM and CRT formats.

To display the Block Notification Page correctly for blocked HTTPS websites, the CA certificate must be installed as a trusted CA certificate on client devices.

To download the CA certificate, follow these steps:

  1. Navigate to Gateway Settings → Block Notification Page.

  2. Scroll down to the Certificate Authority section.

  3. Click Download CA Certificate to open the dropdown menu.

  4. Select the desired certificate format, PEM or CRT.

  5. Save the certificate file to your local device.

    Figure 6. Downloading CA Certificate on Zenconsole

tip

To display block notification pages for blocked HTTPS websites without certificate warnings, install the Zenarmor CA certificate as a trusted root CA certificate on client devices.

For detailed instructions, see Adding Zenarmor Certificate to a Trust Store.

You can also manage CA certificates through Gateway Settings → Certificate Authority.

Converting PEM Certificate to CRT Format​

If you need to convert the CA certificate file (node-ca.pem) to .crt format for a Microsoft Windows system, you can use the OpenSSL tool on your OPNsense node.

Run the following command:

openssl x509 -outform der -in node-ca.pem -out node-ca.crt

This command converts the PEM certificate into DER-encoded CRT format.

Video on Zenarmor Block Notification Page​

The following video explains the benefits of the Zenarmor Block Notification Page and provides an overview of its functionality.