Created on
11-01-2021
08:01 AM
Edited on
09-16-2025
04:04 AM
By
Jean-Philippe_P
Description
Solution
config webfilter urlfilter .showedit 1
config webfilter urlfilter
edit 1
set name "Auto-webfilter-urlfilter_gkkqnfrif"
config entries
delete 1 <----- This will delete the 'example.com' entry created from GUI.
edit 1
set url "*.google.com"
set type wildcard
set web-proxy-profile "Auto-web-proxy-profile_ff0ygfu3d"
next
edit 2
set url "gmail.com"
next
edit 3
set url "google.com"
next
end
next
end
To allow uploading and downloading files from Gmail without any restrictions, conditioned to the 'Web-based Email' category being blocked, add the URLs in charge of this process in the webfilter urlfilter. In this case, the one known so far is 'mail-attachment.googleusercontent.com', which also belongs to the blocked category.
This URL must be allowed or exempted to allow uploading and downloading files from the email:
config webfilter urlfilter
edit 2
set name "Auto-webfilter-urlfilter_2ge7ltkpd"
config entries
edit 1
set url "*mail-attachment.googleusercontent.com*" <---
set type wildcard
next
end
next
end
Additional Requirement:
For the configuration to work as expected, it is necessary to block the QUIC protocol (HTTP/3 over UDP/443). If QUIC is not blocked, Gmail traffic may bypass proxy-based inspection and web filter policies, allowing access to personal accounts despite restrictions. This can be achieved by creating or editing an Application Control profile and setting the QUIC protocol action to Block, then applying this profile to the same firewall policy where the Web Filter is enforced.
Ensure that the firewall policy using the web filter profile is configured in proxy mode, as domain-based Google account restrictions do not function in flow-based mode.
For other options to block QUIC, see this article: Technical Tip: How to block/disable QUIC.
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.