Configuring The Banned Word List; Using Perl Regular Expressions - Fortinet FortiGate FortiGate-60 Administration Manual

Antivirus firewalls version 2.80 mr6
Hide thumbs Also See for FortiGate FortiGate-60:
Table of Contents

Advertisement

Using Perl regular expressions

Configuring the banned word list

Using Perl regular expressions
346
Action
Select the action to perform on email containing the banned word. Choose
from: Mark as Spam to apply the spam action configured in the protection
profile, or Mark as Clear to allow the email (since Banned Word is the last
filter).
Enable
Select to enable scanning for the banned word.
To add or edit a banned word
1
Go to Spam Filter > Banned Word.
2
Select Create New to add a banned word or select Edit for the banned word you want
to modify.
3
Enter the word or phrase.
4
Select the language (character set).
5
Select the location.
6
Select the action to take on email containing the banned word.
7
Select Enable.
8
Select OK.
Email address list, MIME headers list, and banned word list entries can include
wildcards or Perl regular expressions.
See http://www.perldoc.com/perl5.8.0/pod/perlre.html for detailed information about
using Perl regular expressions.
Regular expression vs. wildcard match pattern
In Perl regular expressions, '.' character refers to any single character. It is similar to
the '?' character in wildcard match pattern. As a result:
fortinet.com not only matches fortinet.com but also matches fortinetacom,
fortinetbcom, fortinetccom and so on.
To match a special character such as '.' and '*' use the escape character '\'. For
example:
To mach fortinet.com, the regular expression should be: fortinet\.com
In Perl regular expressions, '*' means match 0 or more times of the character before it,
not 0 or more times of any character. For example:
forti*\.com matches fortiiii.com but does not match fortinet.com
To match any character 0 or more times, use '.*' where '.' means any character and
the '*' means 0 or more times. For example, the wildcard match pattern forti*.com
should therefore be fort.*\.com.
01-28006-0002-20041105
Spam filter
Fortinet Inc.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents