Use the CLI commands in this topic to add a rule to a custom blacklist or to delete a rule from a custom blacklist. You can add up to 10,000 blacklist entries to the appliance database.
Go to CLI configuration mode.
hostname > enable hostname # configure terminal
Specify the type of rule to add to a custom blacklist.
To add the blacklist rule based on the SHA-256 hash file and the associated SHA-256 signature:
hostname (config) # analysis custom blacklist sha256 <sha256> signature <sha256_signature>
To add the blacklist rule based on the MD5 hash file:
hostname (config) # analysis custom blacklist md5sum <md5sum>To add the blacklist rule based on the URL:
hostname (config) # analysis custom blacklist url <URL>To add the blacklist rule based on the RegEx URL:
hostname (config) # analysis custom blacklist regex url <URL>
Verify that the specified SHA-256 hash file and the associated SHA-256 signature are added to the custom blacklist.
hostname (config) # show analysis custom blacklistVerify that the specified URLs are added to the custom blacklist.
hostname (config) # show analysis custom blacklist urlsVerify that the specified RegEx URLs are added to the custom blacklist.
hostname (config) # show analysis custom blacklist regex urlsSave your changes.
hostname (config) # write memory
Examples
This example adds the URL "http://jx60-glj-4yl7.iur.trade/index/207.php" to a custom blacklist:
hostname (config) # analysis custom blacklist url http://jx60-glj-4yl7.iur.trade/index/207.php hostname # show analysis custom blacklist urls Successfully fetched url Custom Blacklist URLs: URL: Signature Name http://jx60-glj-4yl7.iur.trade/index/207.php?M=19217077!N=232!L=207!F=H: Block-List-Match-Url
This examples adds the SHA-256 hash file "874b0f0ba2cf612a195be31816a28d16a4a52847cdd45ce8c4b2670a0a0c1ad1" and the associated SHA-256 signature "Custom.Blacklist" to a custom blacklist:
hostname (config) # analysis custom blacklist sha256 874b0f0ba2cf612a195be31816a28d16a4a52847cdd45ce8c4b2670a0a0c1ad1 signature Custom.Blacklist hostname (config) # show analysis custom blacklist Custom blacklists: Sha256 : Signature Name 874b0f0ba2cf612a195be31816a28d16a4a52847cdd45ce8c4b2670a0a0c1ad1 : Custom.Blacklist
Go to CLI configuration mode.
hostname > enable hostname # configure terminal
Specify the type of rule to delete from a custom blacklist.
To delete the blacklist rule based on the URL:
hostname (config) # no analysis custom blacklist url <URL>To delete the blacklist rule based on the Regex URL:
hostname (config) # no analysis custom blacklist regex url <URL>To delete the blacklist rule based on the SHA-256 hash file and the associated SHA-256 signature:
hostname (config) # no analysis custom blacklist sha256 <sha256>To delete the blacklist rule based on the MD5 hash file:
hostname (config) # no analysis custom blacklist md5sum <md5sum>
Verify that the specified URLs are deleted from the custom blacklist.
hostname (config) # show analysis custom blacklist urlsVerify that the specified RegEx URLs are deleted from the custom blacklist.
hostname (config) # show analysis custom blacklist regex urlsVerify that the specified SHA-256 hash file and the associated SHA-256 signature are deleted from the custom blacklist.
hostname (config) # show analysis custom blacklistSave your changes.
hostname (config) # write memory Saving configuration file ... Done!
Examples
This example deletes the URL "http://jx60-glj-4yl7.iur.trade/index/207.php" from a custom blacklist:
hostname (config) # no analysis custom blacklist url http://jx60-glj-4yl7.iur.trade/index/207.php hostname (config) # show analysis custom blacklist urls url blacklist not found
This examples deletes the SHA-256 hash file "874b0f0ba2cf612a195be31816a28d16a4a52847cdd45ce8c4b2670a0a0c1ad1" and the associated SHA-256 signature from a custom blacklist:
hostname (config) # no analysis custom blacklist sha256 874b0f0ba2cf612a195be31816a28d16a4a52847cdd45ce8c4b2670a0a0c1ad1