Created on
03-29-2022
10:56 PM
Edited on
09-04-2025
05:39 AM
By
Jean-Philippe_P
Description | This article describes how to configure web filters and URL filter via CLI. |
Scope | FortiGate. |
Solution |
To create a URL filter via CLI for Facebook.
Forti # config webfilter urlfilter
Now, it is possible to call that URL filter a web filter profile.
Forti # config webfilter profile
To apply the Web Filter profile to a firewall policy:
config firewall policy (policy) # edit 1 (1) #set webfilter-profile "webfilter" (1) # end
To check if the configuration was applied:
config firewall policy (policy) # edit 1 (1) # show
config firewall policy
Note: From 7.6.3 version, there is an option to control whether webfilter.urlfilter simple-type entries match subdomains.
config webfilter urlfilter
Related articles: Technical Tip: Web filter profiles in NGFW policy mode Technical Tip: FortiGate configure web filter content filtering |
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.