--- title: "Adding rules to a blocked list using the CLI" slug: "adding-rules-to-a-blocked-list-using-the-cli" tags: ["Product Usage", "EX 11.x", "FX 11.x", "AX 11.x", "NX 11.x", "Network Security"] updated: 2026-08-24T19:52:57Z published: 2026-08-24T19:52:57Z canonical: "docs.trellix.com/adding-rules-to-a-blocked-list-using-the-cli" 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. # Adding rules to a blocked list using the CLI Use the CLI commands in this topic to add rules to a blocked list. **To add rules to a blocked list:** 1. Go to CLI configuration mode. ``` hostname > enable hostname # configure terminal ``` 2. Specify the type of rule to add to a blocked list. - To add the block policy rule based on the email address of the sender: ``` hostname (config) # email-analysis blocked-list sender-email-address ``` - To add the block policy rule based on the domain of the sender: ``` hostname (config) # email-analysis blocked-list sender-domain ``` - To add the block policy rule based on the IP address of the sender: ``` hostname (config) # email-analysis blocked-list sender-ip ``` - To add the block policy rule based on the URL: ``` hostname (config) # email-analysis blocked-list url ``` - To add the block policy rule based on the MD5 checksum attachment: ``` hostname (config) # email-analysis blocked-list md5sum ``` 3. Save your changes. ``` hostname (config) # write memory ``` ### Examples - This example adds the email address of the sender to a blocked list: ``` hostname (config) # email-analysis blocked-list sender-email-address admin1920@yahoo\.com ``` - This example adds the domain of the sender to a blocked list: ``` hostname (config) # email-analysis blocked-list sender-domain nodomain\.net ``` - This example adds the IP address of the sender to a blocked list: ``` hostname (config) # email-analysis blocked-list sender-ip 44\.33\.22\.11 ``` - This example adds the URL to a blocked list: ``` hostname (config) # email-analysis blocked-list url http://www.mai-tumai.com ``` - This example adds the MD5 checksum attachment to a blocked list: ``` hostname (config) # email-analysis blocked-list md5sum 227bc609651f929e367c3b2b79e09d5b ```