Fortinet white logo
Fortinet white logo

CLI Reference

file filter

file filter

Use this sub-command to configure file filter options, including filtering by file extension type and Multipurpose Internet Mail Extension (MIME) type. File filters define the email attachment file types and file extensions to be scanned and are used in attachment scan rules.

Syntax

config file filter

edit <file-type_str>

[set description "<comment_str>"]

set extension <file-extension_pattern>

set mime-type <mime-type_str>

end

Variable

Description

Default

<file-type_str>

Enter a unique name for the file attachment type.

description "<comment_str>"

Enter a description or comment.

extension <file-extension_pattern>

Enter a file extension expressed as a wildcard pattern, for example:

  • *.exe

  • *.dll

mime-type <mime-type_str>

Enter a MIME type in the format <category>/<format>, in order to filter by file category and format.

For example, to filter by image, and specifically for PNG, enter:

set mime-type image/png

To filter for all video formats, enter:

set mime-type video/*

Related topics

profile content

config file filter

file filter

file filter

Use this sub-command to configure file filter options, including filtering by file extension type and Multipurpose Internet Mail Extension (MIME) type. File filters define the email attachment file types and file extensions to be scanned and are used in attachment scan rules.

Syntax

config file filter

edit <file-type_str>

[set description "<comment_str>"]

set extension <file-extension_pattern>

set mime-type <mime-type_str>

end

Variable

Description

Default

<file-type_str>

Enter a unique name for the file attachment type.

description "<comment_str>"

Enter a description or comment.

extension <file-extension_pattern>

Enter a file extension expressed as a wildcard pattern, for example:

  • *.exe

  • *.dll

mime-type <mime-type_str>

Enter a MIME type in the format <category>/<format>, in order to filter by file category and format.

For example, to filter by image, and specifically for PNG, enter:

set mime-type image/png

To filter for all video formats, enter:

set mime-type video/*

Related topics

profile content

config file filter