Created on
06-20-2006
12:00 AM
Edited on
02-13-2025
09:39 PM
By
Anthony_E
| Description | This article describes how to ban words using Content Filter | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Scope | FortiGate, Web Filter, Content Filter | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Solution |
The administrator can specify banned words and phrases and set a score threshold for their importance.
Content Evaluation When the Web Filter detects banned content, it sums up the score threshold of these words and phrases on the page. If the sum is higher than a threshold set in the firewall policy, FortiGate blocks it.
A score threshold can only be configured via CLI. The score can be any value from 0 to 2147483647 (default = <10>). Higher scores indicate more offensive content.
Banned words or phrases are evaluated according to the following rules:
The following table describes how these rules are applied to the contents of a web page. Consider the following sentence to sum the score added: "The score for each word or phrase is counted only once, even if that word or phrase appears many times on the web page."
Wildcards and Regular Expressions: Blocked patterns defined as wildcards or regular expressions may have different results. Wildcards are symbols, such as "*" or "?", to represent one or more characters. For example, as a wildcard expression, forti*.com will match fortinet.com and forticare.com. The "*" represents any character appearing any number of times. Regular expressions refer to Perl expressions, which use some of the same symbols as wildcard expressions, but for different purposes. The "*" represents the character before the symbol. For example, forti*.com will match fortiii.com but not fortinet.com or fortiice.com. The symbol "*" represents "i" in this case, appearing any number of times. Perl regular expressions are case-sensitive. The symbols /i are necessary to make the pattern-matching case insensitive. Perl regular expressions can be combined to create more sophisticated search patterns. See the Common Symbols table for examples. Common Symbols:
Common Search Expressions:
Adding banned words or phrases Specify banned words or phrases according to the syntax outlined above via GUI:
Setting the banned word thresholdThe Web Filter will block any web pages for which the sum of scores for banned content exceeds the content block threshold.
To set the content block threshold via CLI:
conf webfilter profile set bword-table <ID>
Note: The Web Filter with the 'feature set' in proxy-based mode will be visible when the firewall policy is also in proxy-based mode. After applying the web filter to the firewall policy, FortiGate scans content for banned words and phrases and blocks inappropriate web pages.
|
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.