Configuring Edge SWG to take action on File Types utilizing ICAP Apparent Data Type Headers
When CAS detects an apparent file type (such as an MSI file), it returns this information in the X-Apparent-Data-Types header of the ICAP response sent back to the EdgeSWG.
You can configure the EdgeSWG to read this header and take action the transaction accordingly.
Configuration Steps:
On the ProxySG, navigate to or create a new Web Access Layer and create a new rule.
In the Destination field, select ICAP RESPMOD Header Object.
Set the Header Name to exactly X-Apparent-Data-Types.
Set the Header Regex to the target file type (for example, MSI).
Set the Action for this rule to Deny (or your preferred action).
Tip: Identifying the Correct Apparent Data Type String If you are unsure of the exact file type string to use in your Edge SWG rule, you can find it using the CAS built-in test utility:
Log in to the CAS GUI.
Navigate to Utilities > Test.
Choose Select and Scan Test File and upload a sample of the file.
Review the scan Response. The exact value to use in your regex will be displayed next to the X-Apparent-Data-Types header.