--- title: "Adding or deleting riskware detection custom policy rules for file extensions using the Web UI" slug: "adding-or-deleting-riskware-detection-custom-policy-rules-file-extensions" updated: 2026-09-08T21:45:37Z published: 2026-09-08T21:45:37Z canonical: "docs.trellix.com/adding-or-deleting-riskware-detection-custom-policy-rules-file-extensions" --- > ## 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 or deleting riskware detection custom policy rules for file extensions using the Web UI Use the **Custom Riskware Policy Configuration** page to add or delete riskware detection custom policy rules on the File Protect appliance using the Web UI. To add riskware detection custom policy rules: ### Note If you add a file extension to both a blacklist and a riskware rule, the blacklist takes precedence. ### Note You must select alert, quarantine, or both for each rule. 1. In the Web UI, choose **Settings** > **Riskware Policy**. 2. Click the **Custom Riskware Rules** tab. 3. Click **Add**. The **Add New Custom Riskware Rule** dialog box appears. 4. In the **File Extension** box, enter the file extension for which you want to add to a custom policy rule. Click **Add more File Extension** to add more file extensions. 5. Select the **Alert Only** checkbox to receive alerts when files with this extension appear in an email. 6. Select the **Quarantine** checkbox to block emails that contain files with this extension or files with this extension. 7. Click **Save**. To delete riskware detection custom policy rules: 1. In the Web UI, choose **Settings** > **Riskware Policy**. Click the **Custom Riskware Rules** tab. 2. Select the checkbox to the left of the custom policy rule you want to delete and click the trash can icon. If you want to delete multiple rules at once, select the corresponding checkboxes. Click **Delete**. A confirmation dialog box appears. 3. Click **Yes**. All of the specified custom policy rules for riskware detection are deleted. :