The rule name command creates a file blocking rule and displays the file blocking rule view.
The undo rule command deletes an existing file blocking rule.
| Parameter | Description | Value |
|---|---|---|
| name name | Specifies the name of a file blocking rule. | The value is a case-sensitive character string. The length of a name without spaces ranges from 1 to 32 characters. The length of a name with spaces ranges from 3 to 34 characters. If a name contains spaces, the name must be enclosed with quotation marks (for example, "user for test"). The name cannot contain any question marks (?), commas (,), quotation marks ("), or hyphens (-). |
| all | Deletes all existing file blocking rules. | - |
After you create a file blocking profile, configure file blocking rules to define the applications, file types, direction, and actions for file blocking.
Run the rule name command to create a file blocking rule and access the file blocking rule view. If a data filtering rule already exists, the data filtering rule view is directly displayed. In this view, you can configure the application category, direction, predefined file type, user-defined file type, and action for file blocking.