Web-server – Remove server header from IIS 8.5

http-headersiis-8.5web-serverwindows-server-2012-r2

I have IIS 8.5 installed on my Windows server 2012 R2. I am trying to remove the Server: Microsoft-IIS/8.5 header from my responses.

I tried installed URLScan but it fails to install with the following error

IIS Metabase is required to install Microsoft URLScan Filter v3.1.

I have tried to remove it from the UrlRewrite settings on my website but it's not working. Can anyone please help.

Best Answer

Switch over to use the URL Rewrite v2 module instead and create a rewrite rule. This module is compatible with IIS 8.5. The downside is that it's only capable of rewriting values, not removing entire headers, so the best you can get is to have the server response with "Server:" instead of "Server:Microsoft/IIS". To entirely strip this header, you'll need to do it on the outbound using a layer 7 device (like an iRule on an F5 BIG-IP load balancer) or wait until you can start using Windows Server 2016 (one of the few new options MS added is the ability to disable the Server header).

Related Topic