--- title: "Configuring riskware detection custom policy rules for file extensions" slug: "configuring-riskware-detection-custom-policy-rules-for-file-extensions" tags: ["Product Usage", "EX 11.x", "FX 11.x", "AX 11.x", "NX 11.x", "Network Security"] updated: 2026-09-29T20:50:52Z published: 2026-09-29T20:50:57Z canonical: "docs.trellix.com/configuring-riskware-detection-custom-policy-rules-for-file-extensions" stale: true --- > ## 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. # Configuring riskware detection custom policy rules for file extensions You can add or delete riskware detection custom policy rules for specified file extensions by using the Email Security - Server appliance Web UI or CLI: - [Adding or deleting riskware detection custom policy rules for file extensions using the Web UI](/data-and-email/docs/adding-or-deleting-riskware-detection-custom-policy-rules-file-extensions-web-ui) - [Adding or deleting riskware detection custom configurations using the CLI](/data-and-email/docs/adding-or-deleting-riskware-detection-custom-configurations-using-the-cli) When you add a custom policy rule for riskware detection on the appliance, email attachments or files with file extensions matching the specified extension are blocked or marked as custom riskware and excluded from further analysis. > [!NOTE] > Note > > If you add a file extension to both a blacklist and a riskware rule, the blacklist takes precedence.