Technical Tip: Safe Search feature in FortiOS and how to enable it
Description
Scope
FortiGate, Safe Search, Google, Yahoo, Bing.
Solution
Safe Search is a feature of popular search sites that prevents explicit websites and images from appearing in search results. Although Safe Search is a useful tool, especially in educational environments, the resourceful user may be able to simply turn it off. Enabling Safe Search for the supported search sites enforces its use by rewriting the search URL to include the code to indicate the use of the Safe Search feature.
For example, on a Google search, it would mean adding the string '&safe=active' to the URL in the search.
The search sites supported are:
- Google.
- Yahoo.
- Bing.
- Yandex.
Enabling Safe Search in the GUI:
- Navigate to the FortiGate GUI -> Security Profiles -> Web Filter.
- Select the intended Web Filter Profile.
- Select Search Engines.
- Enable Enforce 'Safe Search' on Google, Yahoo!, Bing, and Yandex.
- Select Apply.

config webfilter profile

This enforces the use of Safe Search in traffic controlled by the firewall policies using the web filter that was configured.
edit "QUIC"
set udp-portrange 443
next
end
edit <Policy ID>
set name "Block QUIC"
set srcintf "<Incoming Interface>"
set dstintf "<Outgoing Interface>"
set srcaddr "all"
set dstaddr "all"
set schedule "always"
set service "QUIC"
set logtraffic all
next
end
Note:
