locked
Removal of "server" from HTTP Response Headers RRS feed

  • Question

  • User-131805334 posted

    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.

    Monday, July 16, 2018 10:57 AM

All replies