I'm looking for a way to block not only applications, but the file types. i.e. windows help files .hlp and chm.
They don't show up in the list.
.hlp -> application/ms-help
.chm -> application/ms-html-help
Thanks, now I get it look for the specific application, not very intuitive though...
what do you mean by application? What I listed - this is "official" names for these file types. If you want to block based on file extension (not recommended though), you can use MediaType.FromExtension property
I mean when searching for the extensions, I looked for the extension not the specific application or software i.e ms-help, my bad... and why isn't it recommended?
It's recommended because user can rename files, files could be delivered via 'CGI' scripts, etc. The MediaType.EnsuredTypes works very fast & precise.
Ok, I understand thanks.