---
title: Configuring HTTP Policy
slug: getting-started-guide-legacy-ui/configuring-http-policy
description: Learn how to configure HTTP policies in Kron PAM with this informative document. Discover how these policies control access to web pages and determine which ones are allowed or denied. Get step-by-step instructions on creating and customizing HTTP policie
docTags: 
createdAt: 2022-08-04T09:29:29.000Z
---

HTTP policies define which web pages are permitted or denied. There is also a filtration for the HTTP logs. The main URL is configured in the previous section. This section is only for configuring the HTTP policy to allow or deny the pages under the main URL. For example, if the main URL is “http\://facebook.com,” policies are only applicable for http\://facebook.com and its sub URLs.

To configure HTTP policies in Kron PAM:

1. Navigate to **Policy Control** > **Session Policy**
2. Open the **HTTP Policy** tab
3. Create an HTTP Policy by filling in the fields as described below:

| **Field**       | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Description** | Enter the description of the web page. The description is only a name to distinguish the web page.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| **Type**        | - **Allow:&#x20;**&#x41;llowed sub-URLs of the main URL need to be configured as **Allow*****.***<br />- **&#xD;Deny:&#x20;**&#x49;f there is a permitted main URL and an admin wants to deny a related sub-URL, the sub-URL needs to be configured as **Deny**.<br />- **&#xD;Filter Log:&#x20;**&#x54;o filter the HTTP logs defined in this field. This is a tool to avoid unnecessary logs.&#xD;<br />**Multiple Policies**<br />It is possible to apply more than one HTTP policy to a web page. In this scenario, HTTP proxy checks the **Deny** criteria first. If the requested web page matches the **Deny** criteria, HTTP Proxy denies the web page; otherwise, it checks for the **Allow** criteria. If the requested page matches the **Allow** criteria, HTTP Proxy allows the web page; otherwise, HTTP Proxy denies the web page. <br />**Logging**<br />All denied criteria are logged indisputably. As for the allowed criteria, HTTP Proxy checks if it is configured in the Filter Log. If not, the allowed logs are stored as well.<br />**&#xD;** |
| **URL**         | To deny specific sub URLs under the main URL, admins must specify these sub-URLs here.<br />The URL can be a) **Exact**, b) **Contains**, c) **Regex** and, d) **Is empty**.<br />Admins can select:<br />a)   **Exact** if URL can be entered as is<br />b)   **Contains** to restrict all URLs which contain specific words<br />c)   **Regex** to define URLs by regex<br />d) &#x20;**&#x20;Is Empty** if the sub URL is empty<br />Even if the main URL is configured as a device in the previous section, it should be allowed in the HTTP policy as well. Generally, **regex .\*** is used to allow the main URL and all sub-URLs. Another policy can be defined to deny the sub URLs that should be denied.                                                                                                                                                                                                                                                                                                                                                     |
| **Header Name** | A sub webpage can be restricted by the header. Th&#x65;**&#x20;Header Name** needs to be added here and the keywords should be defined in the **Header** field.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| **Header**      | The Header option is used if an admin user wants to restrict the web page with a keyword in the header. The Header Name of the keyword should be configured in the **Header Name&#x20;**&#x66;ield. It can be selected as a) **Exact**, b) **Contains**, c) **Regex** and, d) **Is empty**.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| **Content**     | Web pages can also be denied for a word in the web page content. It can be selected as a) **Exact**, b) **Contains**, c) **Regex** and, d) **Is empty**.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |

![](https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/320ECkVl8WE24hARmB1eN_image.png "HTTP Policy")

