FortiGuard filter
FortiGuard filter enhances the web filter features supplied with your FortiGate unit by sorting billions of web pages into a wide range of categories that users can allow or block.
The FortiGuard Web Filtering service includes over 45 million individual website ratings that apply to more than two billion pages. When the FortiGuard filter is enabled in a web filter and is applied to firewall policies, if a request for a web page appears in traffic controlled by one of the firewall policies, the URL is sent to the nearest FortiGuard server. The URL category or rating is returned. If the category is blocked, the FortiGate shows a replacement message in place of the requested page. If the category is not blocked, the page request is sent to the requested URL as normal.
To use this service, you must have a valid subscription on your FortiGate.
FortiGuard web filter actions
You can select one of the following FortiGuard web filter actions:
FortiGuard Web Filter Action |
Description |
---|---|
Allow |
Permit access to the sites in the category. |
Block |
Prevent access to the sites in the category. Users trying to access a blocked site sees a replacement message indicating the site is blocked. |
Monitor |
Permits and logs access to sites in the category. You can enable user quotas when you enable this action. |
Warning |
Displays a message to the user allowing them to continue if they choose. |
Authenticate |
Requires the user to authenticate with the FortiGate before allowing access to the category or category group. |
![]() |
When the action for a local or remote category is Allow, the category is disabled. The next category's action, in the order of preference, will be applied. |
FortiGuard web filter categories
FortiGuard has many web filter categories including two local categories and a special remote category. For more information on the different categories, see the table below.
FortiGuard Web Filter category |
Where to find more information |
---|---|
All URL categories |
|
Local categories |
|
Remote category |
The priority of categories is local category > external category > FortiGuard built-in category. If a URL is configured as a local category, it only follows the behavior of local category and not external or FortiGuard built-in category.
Blocking a web category
This example shows blocking a website based on its category (rating).
To block a category in the GUI:
- Go to Security Profiles > Web Filter and edit or create a new web filter profile.
- In the FortiGuard category based filter section, select a category and then click Block.
- Configure the remaining settings as required, and then click OK.
To block a category in the CLI:
config webfilter profile edit "webfilter" config ftgd-wf unset options config filters edit 1 set category 52 set action block next end end next end
To check that the category is blocked:
- Go to a website belonging to the blocked category, for example, www.fortinet.com in the Information Technolgy category
The page should be blocked.
To view the log of a blocked website in the GUI:
- Go to Log & Report > Web Filter.
- Select an entry with blocked in the Action column and click Details.
-
To view the log of a blocked website in the CLI:
# execute log filter category utm-webfilter # execute log display 1: date=2019-04-22 time=13:46:25 logid="0316013056" type="utm" subtype="webfilter" eventtype="ftgd_blk" level="warning" vd="vdom1" eventtime=1555965984972459609 policyid=1 sessionid=659263 srcip=10.1.200.15 srcport=49234 srcintf="wan2" srcintfrole="wan" dstip=54.183.57.55 dstport=80 dstintf="wan1" dstintfrole="wan" proto=6 service="HTTP" hostname="www.fortinet.com" profile="webfilter" action="blocked" reqtype="direct" url="/" sentbyte=386 rcvdbyte=0 direction="outgoing" msg="URL belongs to a denied category in policy" method="domain" cat=52 catdesc="Information Technology"
Issuing a warning on a web category
This example shows issuing a warning when a user visits a website in a specific category.
To configure a warning for a category in the GUI:
- Go to Security Profiles > Web Filter and edit or create a new web filter profile.
- In the FortiGuard category based filter section, select a category and then click Warning.
- Set the Warning Interval, then click OK.
The warning interval is the amount of time until the warning appears again after the user proceeds past it.
- Configure the remaining settings as required, and then click OK.
To configure a warning for a category in the CLI:
config webfilter profile edit "webfilter" config ftgd-wf unset options config filters edit 1 set category 52 set action warning next end end next end
To check that the warning is working:
- Go to a website belonging to the configured category, for example, www.fortinet.com in the Information Technolgy category.
- On the warning page, click Proceed or Go Back.
Authenticating a web category
This example shows authenticating a website based on its category (rating).
To authenticate a category in the GUI:
- Go to Security Profiles > Web Filter and edit or create a new web filter profile.
- In the FortiGuard category based filter section, select a category and then click Warning.
- Set the Warning Interval.
- Select one or more user groups, then click OK.
- Configure the remaining settings as required, and then click OK.
To authenticate a category in the CLI:
config webfilter profile edit "webfilter" config ftgd-wf unset options config filters edit 1 set category 52 set action authenticate set auth-usr-grp "local_group" next end end next end
To validate that you have configured authentication:
- Go to a website belonging to the configured category, for example, www.fortinet.com in the Information Technolgy category.
- On the warning page, click Proceed.
- Enter the username and password for the configured user group, then click Continue..
Customizing the replacement message page
When the category action is Block, Warning, or Authenticate, you can customize the replacement message page that a user sees.
To customize the replacement message page:
- Go to Security Profiles > Web Filter and edit or create a new web filter profile.
- In the FortiGuard category based filter section, right-click on a category and select Customize.
- Select a Replacement Message Group. See Replacement message groups for details.
- Optionally, click Edit FortiGuard Block Page or Edit FortiGuard Warning Page to make modifications.
- Click Save.
- Configure the remaining settings as required, and then click OK.