cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
shed
Level 10
Report Inappropriate Content
Message 1 of 5

add new media types

Hi i would like to add some new media types in mwg and don't see how i can , they are: • application/acad • application/x-acad • application/autocad_dwg • image/x-dwg • application/dwg • application/x-dwg • application/x-autocad • drawing/dwg thanks Shel
4 Replies
swilkens1
Employee
Employee
Report Inappropriate Content
Message 2 of 5

Re: add new media types

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

AOK1971
Level 7
Report Inappropriate Content
Message 3 of 5

Re: add new media types

Hi we have a Media Type application/unknown ( no entry in Rule Trace ) is this a known behaviour ?

Re: add new media types

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.

 

 

Was my response useful to you? If so, please consider marking it as an Accepted Solution and giving it a Kudo (click on the thumb up symbol) to help other community members. MWG+Splunk=❤
aloksard
Employee
Employee
Report Inappropriate Content
Message 5 of 5

Re: add new media types

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

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use our Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from product experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by employees.
Join the Community
Join the Community