wad file-filter
Use this command to specify the names of directories and files that you want to exclude from anti-defacement monitoring. Alternatively, you can specify the folders and files you want FortiWeb to monitor and it will exclude any others.
To use this command, your administrator account’s access control profile must have either w
or rw
permission to the wadgrp
area. For details, see Permissions.
Syntax
config wad file-filter
set filter-type {block-file-list | allow-file-list}
edit <entry_index>
set file-type {directory | regular-file}
next
end
Variable | Description | Default |
Enter the name of the file filter you can reference in other parts of the configuration. | No default. | |
Specify the type of filter:
FortiWeb still applies criteria in the anti-defacement configuration to these items. For example, if the file size exceeds the maximum, FortiWeb does not monitor it. |
No default. | |
Enter the index number of the individual entry in the table. | No default. | |
Specify the type of item to add to the list:
|
No default. | |
Enter the name of the folder or file to add to the list. Ensure that the name exactly matches the folder or file that you want to specify. If file-type {directory | regular-file} is For example, if You can restrict the filter condition to a specific file by including file path information in file-name. For example, a website contains many files with the name |
No default. |
Example
This example creates a filter video-folder
that excludes the folder /abc
from anti-defacement monitoring when it is applied to an anti-defacement monitoring configuration.
config wad file-filter
edit "video-folder"
set filter-type block-file-list
edit 1
set file-type directory
set file-name "/abc"
next
end