---
title: Configuring an HTTP Policy
slug: kronpam-getting-started-guide/configuring-an-http-policy
description: Learn how to configure HTTP policies in Kron PAM to control access to specific web pages. This document provides step-by-step instructions on setting up HTTP policies, including filling in necessary fields, filtering logs, and applying multiple policies. 
docTags: 
createdAt: 2023-09-08T11:44:40.615Z
---

HTTP policies define which web pages are allowed or denied. There is also filtering for HTTP logs. The main URL is configured in the previous section. This section addresses how to configure the HTTP policy to allow or deny the pages under the main URL. For example, if the main URL is “facebook.com,” policies are only applicable to facebook.com and its sub-URLs.

To configure HTTP policies in Kron PAM:

1. Navigate to **Policy&#x20;**> **Policy**.
2. Click the blue **Add&#x20;**&#x62;utton and a pop-up will appear.
3. Select the **Policy Key&#x20;**&#x74;ab as **HTTP Policy&#x20;**&#x61;nd click **Save**.
4. Fill in the **Description** and HTTP Rule Type.
5. If needed; turn o&#x6E;**&#x20;URL-based Rule | Header-based Rule | Content-based Rule.**
   a.	Create an HTTP Policy by filling in the fields as described below:

| **Field**             | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Description&#x20;** | Enter the description of the web page. The description is only a name to distinguish the web page.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **Type&#x20;**        | - **Allow:** Allowed sub-URLs under the main URL should be configured as **Allow**.<br />- **Deny:** If the admin wants to deny one of the sub-URLs of an allowed URL, the URL to be denied should be configured as **Deny**.<br />- **Filter Log:** This field filters the HTTP logs that are defined in this field. This is a tool to avoid unnecessary logs.<br />**Multiple Policies**It is possible to apply more than one HTTP policy to a web page. In this scenario, the 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.  |
| **URL&#x20;**         | 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 /><br />Admins can select:<br />a)  **The exact&#x20;**&#x55;RL 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) **Is Empty** if the sub-URL is empty. <br />Even if the main URL is configured as a device, as outlined 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&#x20;** | A sub-web page can be restricted by a header. The **Header Name** should be written here, and the keywords should be defined in the **Header** field.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **Header&#x20;**      | 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&#x20;**     | Web pages can also be denied due to 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/gJOI1ShGhrcFlsiXnyowO_image.png "Kron PAM HTTP Proxy Configuration")

