---
title: Allow/Deny Rule
slug: neurons/help/en_us/allowdeny-rule
createdAt: 2026-11-05T08:02:08.242Z
---

An allow rule is where you allow users, groups, or devices access to specific items, such as files, folders, or applications, network connections, and URL redirection without providing full administrative privileges.

A deny rule is where you deny users, groups, or devices access to specific items, such as files, folders, or applications, network connections, and URL redirection.

**Rule creation workflow steps:**

1. What **Rule** do you want to create?
2. **What** items do you want to allow/deny? You can allow/deny the following types:
   - File/Application: [Implementing File/Application execution](docId\:f5biezH72wW8PBSh4cl8w)
   - Network Connection: [Implementing Application Network Access Control (ANAC) - Network Connection](docId\:f5biezH72wW8PBSh4cl8w)
   - URL: [Implementing URL redirection](docId\:f5biezH72wW8PBSh4cl8w)
3. **When** is the rule assigned?
4. **Summary** and Save

## The What options

:::ExpandableHeading{customAnchorSlug="File/Application"}
## Implementing File/Application execution

The File/Application option lets you create a rule that will allow/deny specific applications or files to execute.

To configure File/Applications, see [Create an Allow/Deny Rule for File/Applications](docId\:f5biezH72wW8PBSh4cl8w).
:::

:::ExpandableHeading{customAnchorSlug="File/Application"}
## Implementing Signature Item execution

Select to use the SHA256 hash of a file to identify what files to allow, deny, or elevate.

To add signature rule items, refer to [Signature Item](docId\:Xxm88Go1B39CAmNSg8J9j).
:::

::::ExpandableHeading{customAnchorSlug="ANAC"}
## Implementing Application Network Access Control (ANAC) - Network Connection

Application Network Access Control (ANAC) provides the ability to control outbound network connections by IP Address, Host name, URL, UNC, or Port, based on the outcome of the rules processing.

The following Connection Types are available:

- **IP Address** - Select to control access to a specific IP Address.
- **Network Share** - Select to control access to UNC paths. The prefix \\\ is added to the Host field.
- **Host Name** - Select to control access to a specific Host Name.

The following Connection Options are available:

- **Host**: The IP Address or Host Name for the network connection. This depends on the type of connection selected. The ? and \* wildcards can be used. The - (hyphen) can be used to specify a range, but only when IP Address is selected.
  - An IP Address must be in IP4 octal format. For example, n.n.n.n
  - If Network Share is selected as the connection type, the \\\ prefix is required.
  - The full path for the target resource can be entered in Host.
- **Port**: The port number of the network connection. This can be used in combination with IP Address or Host Name to control access to a specific port. Ranges and comma separated values are allowed as a part of the port number.
  Click Ports to display a list of commonly used ports. Select as many ports as required.
- **Path**: The path of the network connection. The ? and \* wildcards can be used. To use:

  - **Text contains wildcard characters** - Select to use the characters ? and \* as wildcards in the Path. If not selected, ? and \* are treated as URL delimiters.
  - **Use Regular Expressions** - Select this option to use regular expressions for the selected path.
  - **Include subdirectories** - Select to include subdirectories in the rules processing.
  - Only applicable if the connection type Network Share is selected.

  :::hint{type="info"}
  The Path is only relevant for controlling HTTP.
  :::

To configure ANAC, see [Create an Allow/Deny rule for Network Connection/Application Network Access Control (ANAC)](docId\:f5biezH72wW8PBSh4cl8w).
::::

::::ExpandableHeading{customAnchorSlug="URL"}
## Implementing URL redirection

URL redirection allows administrators to create rules to automatically redirect users when they attempt to access a specified URL. By defining a list of prohibited URLs, you redirect any user attempting to access a listed URL to a default warning page or a custom web page. You can also select to allow certain URLs which, when used in conjunction with redirects, gives you further flexibility and control and lets you create a allowlist of websites.

:::hint{type="info"}
\* The default Access Denied page displays the blocked URL.
\* For URL redirection within Chrome and Edge browsers, all managed endpoints must be part of a domain.
:::

To configure URL redirection, see [Create an Allow/Deny rule for URL](docId\:f5biezH72wW8PBSh4cl8w).
::::

## Creating the Allow/Deny rule - What do you want to allow?

:::ExpandableHeading{customAnchorSlug="CreateFileApplication"}
## Create an Allow/Deny Rule for File/Applications

1. On the **What do you want to do?** page, select **I want to allow/deny**.
2. Click **Next**.
   The **Allow/Deny Rule - What do you want to allow/deny?** page appears.
3. Select the following option and click **Next**.
   - **File/Application**: Allow/Deny specific applications or files to execute.
4. In **Select a source**, use the drop-down to select the source of the items. Select from:
   - **Blocked by Trusted Owners** (only applicable for an Allow rule): This populates the **Source Items** section with a list of all items that App Control has logged as being blocked because they are not owned by a trusted owner.
   - **App Templates**: This populates the **Source Items** section with a list of all [App Templates](docId\:fDWAL5qjn1NwcMZStxfd6) that have been created in App Control.
   - Alternatively, select **Add file manually** to display the [Rule Item Settings](docId\:DZ2-CxIHiV0h0XVx_C3hs) panel, here you can specify which file you want to create the allow rule for.
5. Select the required items. On selection each item is added to the **Selected Items** section.
   You can edit the item settings: Properties and Metadata by clicking the :inlineImage[]{src="https://api.archbee.com/api/optimize/9rfvxhrv8FA-8bxcK2IRv/JuNMY3KhUHcwDLWH_lAiN_general-ellipsis.png" alt="ellipsis icon" caption size="10" width="44" height="28"} to open the [Rule Item Settings](docId\:DZ2-CxIHiV0h0XVx_C3hs) panel.
6. Click **Next**.
   The **Allow/Deny Rule - When is this assigned?** page appears.
7. Continue with [Creating the Allow/Deny rule - When is this assigned? and Summary](docId\:f5biezH72wW8PBSh4cl8w) steps.
:::

:::ExpandableHeading{customAnchorSlug="CreateAnac"}
## Create an Allow/Deny rule for Network Connection/Application Network Access Control (ANAC)

1. On the **What do you want to do?** page, select **I want to allow/deny**.
2. Click **Next**.
   The **Allow/Deny Rule - What do you want to allow/deny?** page appears.
3. Select the following option:
   - **Network Connection**: Allow/Deny specific network connections.
4. In **Select a source**, use the drop-down to select **Network Connections**.
5. In Network Connection, specify the connection type and enter the relevant Host, Port (s), or Path to configure the connection details:
   - **IP Address**: To Allow/Deny an IP address or a range of IP addresses.
   - **Network Share**: To Allow/Deny a Network Share. Enter the path to the Network Share in Host.
   - **Host Name**: To Allow/Deny a Host. Enter a Host Name
6. Click **Add** > **Next**.
   The **Allow/Deny Rule - When is this assigned?** page appears.
7. Continue with [Creating the Allow/Deny rule - When is this assigned? and Summary](docId\:f5biezH72wW8PBSh4cl8w) steps.
:::

:::ExpandableHeading{customAnchorSlug="CreateURL"}
## Create an Allow/Deny rule for URL

1. On the **What do you want to do?** page, select **I want to allow/deny**.
2. Click **Next**.
   The **Allow/Deny Rule - What do you want to allow/deny?** page appears.
3. Select the following option:
   - **URL**: Allow/Deny specific URLs.
4. In **Select a source**, use the drop-down to select **URLs**.
5. In URLs, specify the URL to Allow/Deny access to.
6. (Optional): Deny Rule: Select an appropriate option from the following to display for Deny access:
   - Display the Application Control default warning page when URL is denied
   - Display a custom page when URL is denied
     - Enter the URL that you wish to display.
7. Click **Add** > **Next**.
   The **Allow/Deny Rule - When is this assigned?** page appears.
8. Continue with [Creating the Allow/Deny rule - When is this assigned? and Summary](docId\:f5biezH72wW8PBSh4cl8w) steps.
:::

## Creating the Allow/Deny rule - When is this assigned? and Summary

:::ExpandableHeading
## Allow/Deny Rule - When is this assigned?

1. In **Select a source**, use the drop-down to select the source of the items, any selected or added sources will display in the **Selected Items** section. Select from:
   - **AD Groups**: The AD Display and Group names are listed, you can use the search and filter to refine the list. Alternatively, you can manually add a group, by clicking **Add manually**.
   - **AD Users**: Enter domain\username and click **Add**.
   - **App Control Users**: The username of users that App Control has recorded an event for. Select the required users.
   - **Computer Groups**: Enter the computer group, for example: CN=ComputerGroup. If you want to include nested groups select Search nested groups. Click **Add**.
   - **Device Organizational Units**: Enter the organizational unit, for example: OU=Corporation. If you want to include sub-OUs selec&#x74;**&#x20;Include sub-OUs**. Click **Add**.
   - **Devices**: The Device and Host names of all Neurons discovered window devices are listed, you can use the search and filter to refine the list. Alternatively, you can manually add a device, by clicking **Add manually**.
   - **Entra ID Groups**: Displays the collection of users, devices, or groups synced from Microsoft Entra ID. To configure and sync Entra ID groups, refer to [Configuring Entra ID](docId\:lqeCTG_or-1Smnw4sX_a4).
   - **Entra ID Users**: Displays the list of users that are synced form Microsoft Entra ID. To sync and configure Entra ID users, refer to [Configuring Entra ID](docId\:lqeCTG_or-1Smnw4sX_a4).
   - **IP Addresses**: Enter the IP addresses and select whether you want to match regular expressions against IP addresses. Click **Add**.
     **Example**:
     - 192.168.0.1: select the client device with an IP of 192.168.0.1
     - 192.168.0.\*: select the client devices with an IP of 192.168.0.\<any>
     - 192.168.0.15-25: select all client devices within the IP range of 192.168.0.15 to 192.168.0.25
   - **Scripted**: Scripted rules enable custom rule creation using PowerShell or VBScript to dynamically allow, deny ,or elevate application control. Form more information about adding scripted rules, refer to [Scripted Rule](docId\:j5dfvVgIox3qAYKRJR64U).
   - Alternatively, select **Everyone** to create the rule for the Everyone group, this includes any user that logs on to a device that has the configuration successfully deployed, with the exception of Administrators.
2. Once you are finished with the Selected Items. Click **Next**.
   The **Save Rule and Rule Summary** page appears.
3. Enter a **Name** for the rule, and provide an optional **Description**.
4. In **Categories**, enter an optional category tag for the rule.
   You can add an existing category, or create a new one. The Categories assigned to a rule are visible in the [Configuration Rules](docId\:DZgL6s_on4oT3kJaQltfD) table.
   - To add: Click in **Categories** to display a drop-down list of existing categories, select the required categories.
   - To create: Click in **Categories** and type the new category tag, click out of the field to create and save the category.
5. The default status for the rule is to be **Active**, if you do not want to make the rule active yet, toggle the **Rule Status** to off.
6. Click **Save** to save the rule and return to the configuration, where you'll see the new rule listed in the **Rules** section.
   Alternatively click **Save & Add another**, to save the rule and return to the **What do you want to do?** page to create another rule for the configuration.
7. When you have added all the rules to the configuration, click **Save** to save the configuration as draft. Or, click **Save & Publish** to save the version of the configuration.
   Once published, the configuration is available for assignment to a policy.
:::
