--- title: "Adding file and folder exclusions" slug: "adding-file-and-folder-exclusions" updated: 2026-09-08T19:11:22Z published: 2026-09-08T19:11:22Z canonical: "docs.trellix.com/adding-file-and-folder-exclusions" --- > ## 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 - File and folder exclusions apply to file write events only. - Environment variables are not supported. - Wildcard characters are not supported. The following table lists examples for excluding files and folders from Exploit Guard processing. Reference these examples when adding files and folders to your Exploit Guard file and folder exclusion list. | Exclusion Method | Exclusion Example | | --- | --- | | Exclude a specific file name. | `myfile` | | Exclude a specific file name located in a specific directory. | `C:\Users\Admin\Documents\myfile.txt` | | Exclude all files in a specific directory. | `C:\Users\Admin\Documents\` | | Exclude all files and sub directories in a specific directory. | `C:\Users\Admin\Documents\` | **To add file and folder exclusion list for all of your host endpoints:** 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 **Agent Default Policy** link to access the **Edit Policy** page. 4. Select the **Exploit Guard Protection** tab. 5. In the **Policy Exclusions** section, specify the file or folder path you want to exclude from Exploit Guard processing in the field under the **Exclude files and folders from Exploit Guard**. 6. Click **Add** to add the file or folder path 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**. **To add file and folder exclusions for selected host sets:** ### Note [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 **Exploit Guard Protection** tab. 5. In the **Policy Exclusions** section, specify the file or folder path you want to exclude from Exploit Guard processing in the field under the **Exclude files and folders from Exploit Guard**. 6. Click **Add** to add the file or folder path 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. :