1

On a default installation of IIS there are approximately 350 <mimeMap /> elements specified in the <staticContent> section. Some file extensions seem alien to me e.g. .sv4cpio, .cpio, .onetoc2.

I was wondering if it would be worth removing file extensions that I know I will never be serving? Is there a benefit to doing so?

Kevin Brydon
  • 101
  • 9

1 Answers1

1

Yes, and it's recommended as a defence-in-depth security measure.

If IIS doesn't have an extension defined, the staticfilehandler won't serve it (it'll 404 instead).

TristanK
  • 9,073
  • 2
  • 28
  • 39