--- title: "Adding File and Folder Exclusions to Selected Host Sets" slug: "adding-file-and-folder-exclusions-to-selected-host-sets" updated: 2026-09-08T19:10:30Z published: 2026-09-08T19:10:30Z canonical: "docs.trellix.com/adding-file-and-folder-exclusions-to-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 to Selected Host Sets To add file and folder exclusions to real-time event monitoring 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. From the Policies table, select the link for the custom policy you want to modify. 4. Select the **Real-Time Indicator Detection** tab. 5. Verify that the **Real-Time Indicator Detection ON/OFF** switch is set to **ON**. 6. From the Exclude Files and Folders section, enter the name of a file or folder you want to exclude from real-time event monitoring in the **Exclude files or folders from Real-Time Indicator Detection** field. File and folder exclusions apply to file write events only. See [Real-Time Detection Exclusion Guidelines](/docs/real-time-detection-exclusion-guidelines) for additional guidelines. ![Policy_RTID_FF_Exclusions.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-29768092-f7fe-6385-d49f-12ce2cf4ebb3(1).png?sv=2026-02-06&spr=https&st=2026-11-22T13%3A04%3A28Z&se=2026-11-22T14%3A04%3A28Z&sr=c&sp=r&sig=gfeIDf7Lx7fbjwRT1S08NNanggm7ZfWrVLpHfgH2TPM%3D) 7. Click **Add**. 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. :