<rewrite> <outboundRules> <rule name="ChangeServerHeader"> <match serverVariable="RESPONSE_SERVER" pattern=".*" /> <action type="Rewrite" value="Private Server" /> </rule> </outboundRules> </rewrite>
protected void Application_PreSendRequestHeaders(object sender, EventArgs e) { var app = sender as HttpApplication; if (app != null && app.Context != null) { app.Context.Response.Headers.Remove("Server"); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)