< Home

file-block false-extension action

Function

The file-block false-extension action command configures the action for unmatched file name extensions.

The undo file-block false-extension action command restores the default action for unmatched file name extensions. The default action is allow.

Format

file-block false-extension action { alert | allow | block }

undo file-block false-extension action

Parameters

Parameter Description Value
alert Allows the file transfer and generates event logs. -
allow Allows the file transfer and does not generate event logs. -
block Blocks the file transfer and generates event logs. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The default action for unmatched file name extensions is allow.

If the action for unmatched file name extensions is allow or alert, the device implements data filtering on the files whose name extensions do not match their actual types.

Example

# Set the action for unmatched file name extensions to block.

<sysname> system-view
[sysname] file-block false-extension action block
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >