Chapter 4 FortiOS Carrier : MMS Security features : MMS file filtering : Built-in patterns and supported file types : Filtering based on file name
  
Filtering based on file name
There are filenames that are known to be associated with malware such as viruses and trojans. There are filenames you may associate with other undesirable content in addition to malware. In these situations you want to select specific filenames to filter.
You do not have to match the entire filename. For example if you wanted to block all files with the word trojan in them you could use wildcards to accomplish this - *trojan* . This allows you to select the entire filename, part of the filename, or just the file type to match.
The following procedure creates a filter list called filterExampleFiles that filters two files called exampleTrojanFile.abc and *trojan*.def . When completed, this file filter list can be included in an MMS profile.
To create a file filter based on file name - web-based manager
1. Go to Security Profiles > Data Leak Prevention > File Filter.
2. Select Create New, to create a new file filtering list.
3. Name the list filterExampleFiles.
4. Select Create New to add a filter to the list.
5. Select File Name Pattern for Filter Type.
6. Enter exampleTrojanFile.abc .
7. Enter Block for the Action.
8. Select Enable, and OK.
9. Select Create New to add a filter to the list.
10. Select File Name Pattern for Filter Type.
11. Enter *trojan*.def .
12. Enter Block for the Action.
13. Select Enable, and OK.