security - Remove Server Response Header IIS7 -


Is there a way to remove "server" feedback headers from IIS7? Some articles are being shown that we can achieve the same thing using the HTTPS module. It would be helpful if we do not have the rights to the server. Besides, I do not want to type the ISAPI filter.

I have admin rights on my server, so I do not want to do the above stuff. So, please help me do the same.

Add it to your global.asax.cs:

  Secure void Application_PreSendRequestHeaders () {Response.Headers.Remove (" server "); Response.Headers.Remove ("X-ASPNET-version"); Response.Headers.Remove ("X-AspNetMvc-Edition"); }  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -