Description | This article describes how to create two different replacement messages to the same web filter profile but with two or more different categories. |
Scope | FortiGate. |
Solution |
The solution will be provided within the CLI command and replacement message-group with custom-message.
To apply different replacement messages for two different categories for the same web filter profile, it is first necessary to enable the replacement-group feature in the GUI to make it visible with the following:
config system global
Then it is necessary to create the replacement-group for each category like the below:
config system replacemsg-group edit "myreplace" set comment '' set group-type utm config custom-message edit "hacking" set buffer "<html><body><h1>This site belongs to hacking blocked category</h1></body></html>" set header http set format html next edit "stream" set buffer "<html><body><h1>This site belongs to streaming and media blocked category</h1></body></html>" set header http set format html next end next end
Create the web filter profile such as in the following configuration, where a custom message is used for the blocked categories 'Hacking' and 'Stream and media' and apply it to the policy.
config webfilter profile unset options end
To get the category ID for the web filter category, follow the article : Technical Tip: How to check the web filtering categories corresponding to the category ID
See the following documentation for further information on the replacement group: |
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 2024 Fortinet, Inc. All Rights Reserved.