--- title: "Adding File and Folder Exclusions for Selected Host Sets" slug: "adding-file-and-folder-exclusions-for-selected-host-sets" updated: 2026-09-08T19:10:30Z published: 2026-09-08T19:10:30Z canonical: "docs.trellix.com/adding-file-and-folder-exclusions-for-selected-host-sets" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Adding File and Folder Exclusions for Selected Host Sets To add file and folder exclusions to malware protection processing for selected host sets: ### Note [See Creating a Custom Policy](/docs/creating-a-custom-policy) for more information about using the Web UI to create a custom policy. 1. Log in to the Web UI as an administrator. 2. From the **Admin** menu, select **Policies** to access the **Policies** page. 3. In the Policies table, click the link for the custom policy you want to modify. 4. Select the **Malware Protection** tab. 5. In the **Policy Exclusions** section, specify the file path for the file or folder you want to exclude from malware protection processing in the field under the **Exclude files or folders from malware scanning**. 6. Click **Add** to add the files and folders to the list. 7. Repeat Steps 5 and 6 until you have added all the files and folders you want to the list. 8. Click **Save**. Now you can assign host sets to the custom policy and set the policy priority level. See [Assigning Host Sets to Agent Policies](/docs/assigning-host-sets-to-xagent-policies) and [Configuring Policy Priority Using the Web UI](/docs/configuring-policy-priority-using-the-web-ui) for more information. :