# Content Filter

Setting up content filtering and troubleshooting.

---

Content filtering on the SafeUTM server is implemented based on web traffic data received from the web traffic proxying module. Thus, the content filter allows you to efficiently block access to various internet resources.

The mechanism of content filtering consists in checking the affiliation of the address requested by a website or website page user and its presence in prohibited resource lists. The lists in their turn are divided into categories for easier administration.

<p class="callout warning">The content filtering module only works with an active subscription to updates in the Enterprise edition.</p>

<p class="callout info">HTTPS sites without traffic decryption are filtered by domain only (not by full URL), **Files** category rules cannot be applied to them either. Create rules for decrypting HTTPS traffic of necessary categories in order to fully filter HTTPS.</p>

---

#### Content filter settings and categories

<details id="bkmrk-content-filtering-se"><summary>Content Filtering Setup</summary>

Go to **Traffic Rules -&gt; Content Filter** and activate the extended content filter database by switching the slide to **Enabled** next to **Extended base of categories**.  
[![1. Content Filtering.png](https://docs.safedns.com/uploads/images/gallery/2022-08/scaled-1680-/TgEq6d7NkIPCBZ22-1-content-filtering.png)](https://docs.safedns.com/uploads/images/gallery/2022-08/TgEq6d7NkIPCBZ22-1-content-filtering.png)

You can configure additional filtering options in the **Settings** tab:

- **Block QUIC and HTTP/3 protocols.** An experimental protocol used by Chrome browser for access to some resources (e.g. YouTube). It is recommended to be blocked as filtering of resources working under this protocol will not be possible otherwise.
- **Safe search.** Forcibly enables safe search in search engines (Google, Yandex, YouTube, Yahoo, Bing). **In order for this function to work, you need to enable HTTPS filtering by certificate substitution for these resources**. [![2. Content Filtering.png](https://docs.safedns.com/uploads/images/gallery/2022-08/scaled-1680-/Fz7O1hGFcDxkdnpM-2-content-filtering.png)](https://docs.safedns.com/uploads/images/gallery/2022-08/Fz7O1hGFcDxkdnpM-2-content-filtering.png)

</details><details id="bkmrk-content-filtering-ca"><summary>Content Filtering Categories</summary>

- **Extended base of categories**. Over 140 categories including millions of URLs automatically updated by the server. The status of updates and database usage can be viewed in the **Settings** tab in the Content Filtering section. These categories only work with an active subscription to updates in commercial editions.
- **Custom categories**. You can create your own rules in the tab with the same name. [![3. Content Filtering.png](https://docs.safedns.com/uploads/images/gallery/2022-08/scaled-1680-/KfvTOa42nSOkbpJi-3-content-filtering.png)](https://docs.safedns.com/uploads/images/gallery/2022-08/KfvTOa42nSOkbpJi-3-content-filtering.png)
- **Special**. Includes four categories – all queries, all categorized queries, all non-categorized queries, and queries with direct access by IP addresses.
- **Files**. Eight defined categories of files blocked by extension and MIME type. Preset file groups (Executable Files, Archives, Video Files, Audio Files, Flash video, Active-X, Torrent files, and Documents) cannot be edited. Filtering HTTPS traffic for these types of categories is only possible when it is decrypted.

</details>
---

#### Applying Filtering

<details id="bkmrk-applying-filtering-r-0"><summary>Applying Filtering Rules to Users</summary>

The rules are applied from top to bottom according to the order in the table until the first match. Thus, if the higher-level rule allows a certain resource for a specified user group, the lower-level rules will not be applied to it. This way more flexible filtering settings can be created, excluding desired users by higher-level rules from blocking rules. HTTPS decryption rules apply in a similar way.

Rules can be enabled, disabled, changed in priority, edited, and deleted in the **Operations** column. Content filtering rules are applied immediately after they are created and enabled.  
[![4. Content Filtering.png](https://docs.safedns.com/uploads/images/gallery/2022-08/scaled-1680-/orCpLaqWJ9o5GnPj-4-content-filtering.png)](https://docs.safedns.com/uploads/images/gallery/2022-08/orCpLaqWJ9o5GnPj-4-content-filtering.png)

To create a new rule, click on **Add** in the left corner above the table.  
[![5. Content Filtering.png](https://docs.safedns.com/uploads/images/gallery/2022-08/scaled-1680-/CUcWJXfnx56AF1Gt-5-content-filtering.png)](https://docs.safedns.com/uploads/images/gallery/2022-08/CUcWJXfnx56AF1Gt-5-content-filtering.png)

Fill in the following fields:

- **Title** – the rule name in the list. Maximum 42 characters.
- **Applies to** – you can select objects of the following types: user, user group, IP address, IP address range, subnet, list of IP addresses, or a special object **Quota Exceeded** (users who exceed traffic quota fall in this object).
- **Sites Categories** – user, special, and advanced web-resource categories.
- **Action** – the action of this rule towards web requests. You can prohibit, allow or decrypt HTTPS traffic. [![6. Content Filtering.png](https://docs.safedns.com/uploads/images/gallery/2022-08/scaled-1680-/zj7daPJI4zIkp3OI-6-content-filtering.png)](https://docs.safedns.com/uploads/images/gallery/2022-08/zj7daPJI4zIkp3OI-6-content-filtering.png)

</details><details id="bkmrk-diagnostics-if-conte"><summary>Diagnostics</summary>

If content filtering rules are not working, check the following parameters in the settings:

1. The IP address of the user’s computer must correspond to their address in authorization (section **Monitoring** – **Authorized users**), and the user must be in the group to which the rule applies.
2. The IP address of the user and the resource to which they access must not be included in the proxy server exceptions.
3. Check if the resource to which you are accessing is categorized correctly in the field **URL for** **Categorization** in the **Rules** tab. [![7. Content Filtering.png](https://docs.safedns.com/uploads/images/gallery/2022-08/scaled-1680-/Ngh2lQIijNIOwOxo-7-content-filtering.png)](https://docs.safedns.com/uploads/images/gallery/2022-08/Ngh2lQIijNIOwOxo-7-content-filtering.png)  
    If the site is incorrectly categorized, please use the [**SafeDNS feedback form**](https://www.safedns.com/resource/support-ticket).
4. VPN functions or plug-ins are not used in the user’s browser or computer; third-party proxy servers are not set.

</details>