FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
arahman
Staff
Staff
Article Id 380553
Description This article describes the troubleshooting steps for traffic getting blocked by Web Filter with the message unknown content-encoding detected and blocked.
Scope FortiGate.
Solution

Sometimes When trying to access any website it gets blocked by FortiGate Web Filter and checking its log shows the message blocked by unknown content-encoding detected and blocked.

 

Capture Kb 11.png


From CLI:

date=2025-12-22 time=11:27:08 eventtime=1766420827987384701 tz="-0500" logid="0249009241" type="utm" subtype="virus" eventtype="unknown" level="warning" vd="root" policyid=14 sessionid=165536541 srcip=10.10.21.93 dstip=13.33.67.94 srcport=53052 dstport=443 srcintf="lan" srcintfrole="lan" dstintf="port1" dstintfrole="wan" proto=6 service="HTTPS" action="blocked" group="Internet-Access-MKTG" url="https://cf.ctctcdn.com/g/113/234.png" content encoding="base64" msg="Unknown content-encoding detected and blocked."

 

This happens because some of the websites use new ZSTD encoding or ZStandard (RFC 8878), which is not supported in the previous version of FortiGate, causing the inspected profile applied on the policy, instead of allowing, will fail to inspect and be blocked, as the default value for this is set to block. It is fully supported for both Flow-based and proxy-based inspections from versions 7.2.9, 7.4.5, and 7.6.0.

 

There are a few workarounds for this, and any of the following can be followed.

 

In the FortiGate:

  1. Create a policy for the website that is having issues without inspection.
  2. The default value for unknown content-encoding is set to block under firewall profile-protocol-options.

 

Capture kb 11.2.PNG

 

The default profile-protocol-options is read-only and cannot be changed. So to change it, create a new profile-protocol-options and set it to inspect. These changes can only be done in the CLI.

 

Capture kb 11.3.PNG

 

In the GUI, it can be seen under Policy & Object -> Firewall Policy and then under Firewall/Network Options.

 

Capture Kb 11.4.PNG

 

In Browser:

  1. In Edge, the ZSTD encoding flag can be disabled by searching for the flag below and disabling it.

 

edge://flags/#enable-zstd-content-encoding 

 

  1. In Chrome, it can be disabled by searching the flag below and changing it to disable.

 

chrome://flags/#enable-zstd-content-encoding

 

Related documents: 

Support the Zstandard compression algorithm for web content

Technical Tip: FortiGate and ZSTD implementation (for example Meta: Facebook, Whatsapp, Instagram bl...