Quantcast
Channel: Security Vulnerability
Viewing all articles
Browse latest Browse all 317

Removal of "server" from HTTP Response Headers

$
0
0

Hi everyone,

  I am trying to remove the "server" from the HTTP Response Headers through the Global.asax file as shown below but it is not working. I am using IIS6 and asp.net 2.0.

May I know how do I change to remove it ? Through URLRewrite ?

 void Application_Start(object sender, EventArgs e)
    {
        // Code that runs on application startup
    }
   
    protected void Application_PreSendRequestHeaders()
    {
        Response.Headers.Remove("Server");
    }

Appreciate for your help.

Thank You.


Viewing all articles
Browse latest Browse all 317


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>