Why can't the "Server" Response Header be removed via web.config in IIS7?

David Murdoch picture David Murdoch · Sep 9, 2010 · Viewed 16.5k times · Source

Remove Server Response Header IIS7

I know how to remove the Server response header with an HTTP Module based on the link above.

I just want to know why it is necessary to remove it this way.

Answer

NotMe picture NotMe · Jan 3, 2011

The comments in Aristos link gives as good an answer to the Why.

It boils down to MS not wanting to easily let people modify this value. Whether for marketing or other purposes is open to interpretation.

One thing to take away from that discussion is that modifying the server header is not useful for any sort of security. There are a myriad of ways that you can detect exactly what kind (and version) of web server software is running.

Which leaves us with only one reason to do so: to save bytes. Unless you're running an extremely high traffic site this isn't a concern. If you are running a high traffic site then you are more than likely already running one or more custom modules.