Hi Shed,
You wouldn't be able to add them as 'Ensured Types' that MWG could recognize with MediaType.EnsuredTypes (except by submitting a Product Enhancement Request following KB60021).
However, you could add them to a list that is referenced with the property MediaType.FromHeader. This way, as long as the response has a Content-Type HTTP header, you can match against any custom media types.
Let me know if this doesn't work for you or if you have further questions.
Steven
Hi we have a Media Type application/unknown ( no entry in Rule Trace ) is this a known behaviour ?
Hello @AOK1971
application/unknown is not defined in SWG, it may be provided by the original web server, to verify open a cmd or linux terminal and run this command:
curl -I https://<your url>
then check the Content-Type header in the output.
SWG kann "fix" wrong content-type by looking inside of the file and comparing starting bytes of the payload with internal database of known media types, but it is seldom required since SWG can do antimalware scanning disregarding the apparent media type header.
If it only one url or a single web site then you can ignore it, it doesn't impact security.
Hi,
Hope you are doing well.
Some information on this, we have : image/vnd.dwg detection, so we have dwg file detection.
Looks like below are all same mime types:-
application/acad
application/x-acad
application/autocad_dwg
image/x-dwg
application/dwg
application/x-dwg
application/x-autocad
image/vnd.dwg
drawing/dwg
https://en.wikipedia.org/wiki/.dwg
So looks like we have the mimetype detection for these.
Was my reply helpful?
If you find this post useful, Please give it a Kudos! Also, Please don't forget to select "Accept as a solution" if this reply resolves your query!
Regards
Alok Sarda
New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.
Thousands of customers use our Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership: