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

Block Media Type before the proxy download it (Big size Media type)

Hi,

We had to implement the bloking Media type rule because some users are downloading Mkv file from office, witch is illegal. Is there a rule parameter to block immediately the download? MKV are big-size file, and we don't want the end of the download to block the file.

Thanks.

0 Kudos
3 Replies
equipereseau
Level 7

Re: Block Media Type before the proxy download it (Big size Media type)

In fact, the Media Type filtering don't detect Mkv files, i can see in the rule trace that Media type is not matching any of the Video list.... useless....

0 Kudos
feickholt
Level 10

Re: Block Media Type before the proxy download it (Big size Media type)

you can easily block all downloads with file extension .mkv.     (property URL.Fileextension)

in combination with body.size or header.response (Content-Length)... you can deny downloads for files which exceeds a predefined size...

0 Kudos
McAfee Employee

Re: Block Media Type before the proxy download it (Big size Media type)

You can also use the MediaType.FromHeader property. In this case it evaluates to video/x-matroska.

With videos sometimes the EnsuredMediaType property doesn't have enough information to say if it can ensure it's that particular media type. This is where MediaType.FromHeader is useful.

Best Regards,

Jon