Score:0

IIS 10.0.14393.0 window server 2016, remove server header "Microsoft-HTTPAPI/2.0"

au flag

I have application running on window server 2016, IIS 10.0, when i am sending curl request to my domain

curl request :

curl -i X TRACE -d "test" https://example.com

I am getting following response headers :

HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Tue, 09 Nov 2021 10:54:15 GMT
Connection: close
Content-Length: 311

I want to remove information disclosed in Server response header "Microsoft-HTTPAPI/2.0", I have tried following steps which claims to resolve issue but it is not working

  • Open Regedit
  • Navigate to: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters
  • If DisableServerHeader doesn't exist, create it (DWORD 32bit) and give it a value of 2. If it does exist, and the value isn't 2, set it to 2.
  • Reboot the server OR restart the HTTP service by calling "net stop http" then "net start http"

I have already tried these steps on my server, but it is not working, how can i remove "Microsoft-HTTPAPI/2.0" from server response header

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.