By default, the maximum file size that FortiWeb can decompress is 64 KB. FortiWeb does not scan files larger than the maximum. You can use the config system advanced command’s max-cache-size setting to adjust the maximum files size (see “config system advanced”). |
All decompressed files are recompressed after being scanned. As such, unlike “waf file-compress-rule”, the effects of this command will not be visible to end-users. |
Variable | Description | Default |
<rule_name> | Type the name of a new or existing rule. The maximum length is 35 characters. To display the list of existing rules, type: edit ? | No default. |
<entry_index> | Type the index number of the individual entry in the table. The valid range is from 1 to 9,999,999,999,999,999,999. | No default. |
content-type <content-type_name> | Specify one of the following content types: • text/plain • text/html • application/xml(or)text/xml • application/soap+xml • application/x-javascript • text/css • application/javascript • text/javascript To compress multiple file types, add each file type in a separate table entry with its own <entry_index>. See “Example”. | No default. |
exclude-url <exclusion-rule_name> | Type the name of an exclusion to use with the rule, if any. See “config waf exclude-url”. The maximum length is 35 characters. | No default. |