cancel
Showing results for 
Search instead for 
Did you mean: 
accessible
Level 7

Media Type Filter block page after downloading entire file

Dear community,

We are blocking some file extension and here is our problem:

The error page Media Type Blocked is appearing AFTER downloading the entire file.

So if the user download a forbidden exe of 700 MB, the file is completely downloaded before the Web Gateway block it.

Regards,

Basile Geiser
Accessible Sarl

0 Kudos
3 Replies
asabban
Level 17

Re: Media Type Filter block page after downloading entire file

Can you post a description of how the Rule looks that blocks the file?

Thanks,

Andre

0 Kudos
accessible
Level 7

Re: Media Type Filter block page after downloading entire file

Hello,

Thank you for your fast answer.

Here is my Media Type rules.

wg.jpg

Regards,

Basile Geiser

Accessible Sàrl

0 Kudos
asabban
Level 17

Re: Media Type Filter block page after downloading entire file

Hello,

the Property MediaType.EnsuredType means that MWG has to ensure the MediaType, which means the complete file will be downloaded to make sure we get the correct MediaType. You can try MediaType.FromHeader, which should prevent the file from being downloaded completely. In this case however we trust the MediaType the Webserver sends us, and do not analyze the complete file to detect its Media Type.

Best,

Andre

0 Kudos