Skip to main content

Managing Block Bypass Codes

Published on:
.
2 min read

Zenarmor allows administrators to generate and manage bypass codes to provide controlled access to blocked websites without manually modifying existing security policies.

When Zenarmor blocks access to a website based on configured security policies or detected threats, a block notification page is displayed to inform users why access has been restricted.

Bypass codes allow users to access blocked websites by entering a valid code on the block notification page. This feature helps IT and security teams reduce helpdesk workload while maintaining control over network access.

Types of Bypass Codes​

Zenarmor supports two types of bypass codes:

  • Admin: Whitelists blocked websites for all users and devices on the network.
  • User: Whitelists blocked websites only for the individual device on which the bypass code is entered.

Both types support configurable code expiration periods and category-based restrictions.

info

The default code expiration period is 12 hours. You can select a different duration from the Expires in drop-down menu when creating a bypass code.

note

Both types of bypass codes have a configurable expiration time. Once a bypass code expires, it can no longer be used to whitelist additional websites. However, websites previously whitelisted using the code remain accessible according to the corresponding bypass code type.

Accessing Block Bypass Codes​

To access the Block Bypass Codes page on Zenconsole, follow the steps below:

  1. Log in to your Zenconsole account.

  2. Click Settings on the left-hand sidebar.

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

  4. Click Block Bypass Codes in the gateway settings menu.

    Figure 1. Block Bypass Codes Page on Zenconsole

On this page, you can generate new bypass codes, view existing codes, manage their configurations, and create reusable bypass code templates.

Creating a Bypass Code​

To create a new bypass code on Zenconsole, follow the steps below:

  1. Navigate to the Block Bypass Codes page of the selected gateway.

  2. Click + Generate Bypass Code.

  3. Select New from the drop-down menu to open the Add New Bypass Code window.

    Figure 2. Generating a New Bypass Code

  4. Optionally, enter a custom bypass code in the Code field. If left blank, Zenarmor automatically generates a code.

    tip

    A bypass code must contain six characters and may include numbers, letters, or special characters. Bypass codes are case-insensitive.

  5. Select the Role from the drop-down menu:

    • User (default)
    • Admin
  6. Select the expiration period from the Expires in drop-down menu. The default value is 12 hour. The available options include:

    • 1 Hour
    • 12 Hours
    • 1 Day
    • 1 Week
    • 1 Month
    • 1 Year
    • Custom duration (second)

    If you select Custom duration (second), specify the validity period in seconds.

  7. Configure the Bypass everything option according to your requirements. This option is enabled by default.

    • Enabled: Allows the bypass code to be used across all application and web categories.
    • Disabled: Allows you to restrict the bypass code to selected application and web categories.
    warning

    Enabling Bypass everything may allow users to access potentially malicious websites, including phishing, malware, and botnet-related websites. We recommend restricting bypass codes to the required categories whenever possible.

  8. If you disable Bypass everything, configure the application and web categories for which the bypass code can be used:

    • Select App Categories to configure application categories.
    • Select Web Categories to configure web categories.
    • Click the + icon next to a category under Available Categories to add it to Selected Categories.
    • Click the - icon next to a selected category to remove it.

    Figure 3. Selecting Application and Web Categories

  9. Optionally, select Update template to save the current configuration as a reusable template.

  10. Enter a descriptive name in the Template name field that appears.

    Figure 4. Configuring a Bypass Code Template

  11. Click Create to generate the bypass code.

The newly generated bypass code appears in the list on the Block Bypass Codes page.

Creating a Bypass Code Using a Template​

Bypass code templates allow administrators to reuse predefined configurations without manually specifying the same settings each time.

To create a bypass code using an existing template, follow the steps below:

  1. Navigate to the Block Bypass Codes page.
  2. Click + Generate Bypass Code.
  3. Select the template you want to use from the drop-down menu.
  4. Review the predefined settings and modify them as needed.
  5. Optionally, clear Update template if you do not want to update the existing template.
  6. Modify the Template name if necessary.
  7. Click Create.

Viewing Bypass Codes​

Existing bypass codes are listed on the Block Bypass Codes page.

The following information is displayed for each bypass code:

FieldDescription
CodePIN used to access blocked websites.
RoleType of bypass code, either User or Admin.
AppsNumber of selected application categories out of the total available application categories.
WebsNumber of selected web categories out of the total available web categories.
Expire dateDate and time when the bypass code expires.

Each bypass code has a three-dot (...) menu that provides the following actions:

  • Copy: Copies the bypass code to the clipboard.
  • Edit: Opens the bypass code configuration for modification.
  • Remove: Deletes the bypass code.

Figure 5. Viewing and Managing Existing Bypass Codes

Copying a Bypass Code​

To copy an existing bypass code, follow the steps below:

  1. Navigate to the Block Bypass Codes page.
  2. Locate the bypass code you want to copy.
  3. Click the three-dot (...) menu next to the bypass code.
  4. Select Copy.

The bypass code is copied to the clipboard and can be shared with an authorized user.

Editing a Bypass Code​

To edit an existing bypass code, follow the steps below:

  1. Navigate to the Block Bypass Codes page.

  2. Click the three-dot (...) menu next to the bypass code you want to edit.

  3. Select Edit to open the bypass code configuration window.

  4. Modify the required settings. You can perform the following operations:

    • Generate a new code using Regenerate.
    • Change the assigned Role.
    • Extend the expiration period using Extend the expires date.
    • Enable or disable Bypass everything.
    • Add or remove application categories.
    • Add or remove web categories.
  5. Click Save to apply the changes.

    Figure 6. Editing an Existing Bypass Code

Removing a Bypass Code​

To remove an existing bypass code, follow the steps below:

  1. Navigate to the Block Bypass Codes page.
  2. Locate the bypass code you want to remove.
  3. Click the three-dot (...) menu next to the bypass code.
  4. Select Remove.
  5. Click Delete in the confirmation dialog.

The bypass code is removed and can no longer be used to whitelist additional websites.

Removing a Bypass Code Template​

To remove an existing bypass code template, follow the steps below:

  1. Navigate to the Block Bypass Codes page.
  2. Click + Generate Bypass Code.
  3. Select the template you want to remove from the drop-down menu.
  4. Click Delete Template at the bottom of the configuration window.
  5. Click Delete in the confirmation dialog.

Using a Bypass Code​

When a web connection is blocked by Zenarmor according to the configured security policies, a block notification page containing a blue lock icon is displayed in the browser.

Landing Page with a Lock Icon

Figure 7. Landing Page with a Lock Icon

To access the blocked website using a bypass code, follow the steps below:

  1. Click the blue circle with a lock icon in the lower-right corner of the block notification page.

    Using Bypass Code

    Figure 8. Using Bypass Code

  2. Enter the bypass code provided by your administrator into the Pin code field.

  3. Click Enter. A notification may appear indicating that you need to restart your browser.

    Notification for Restarting Browser

    Figure 9. Notification for Restarting Browser

  4. Restart your browser to access the website bypassed using the PIN code.

  5. Try accessing the website again.