HTTP.SYS driver either handle the request on its own or send it to User mode for further processing. When the request comes to IIS, it is first goes to http.sys driver. Please note that this method is used only when the Server header comes as “ Microsoft-HTTPAPI/2.0”. If that also doesn’t work then you can restart the server. If the HTTP service doesn’t start up then use the iisreset command. HKLM\SYSTEM\CurrentControlSet\Services\HTTP\ParametersĪfter adding the Registry key, restart the HTTP service using the net stop http command and the net start http command. The best one is to use the third option.Ĭreate a DWORD entry called DisableServerHeader in the following Registry key and set the value to 1. There are three ways to remove the Server header from the response. If you would like to go ahead and remove the headers then follow the following options. X-AspNet-Version - Specifies the version of ASP.NET used.īefore you go any further, you should evaluate whether or not you need to remove these headers.X-Powered-By - Indicates that the website is "powered by ASP.NET.".Typically we have 3 response headers which many people want to remove for security reason. The purpose of this blog post is to discuss how to remove unwanted HTTP response headers from the response.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |