For security reasons, it is recommended to use request filtering to suppress the server header and version information. This is done by using the removeServerHeader attribute on the requestFiltering element for the configured Web Site. For more information, see the following documentation from Microsoft:
https://docs.microsoft.com/en-us/iis/configuration/system.webserver/security/requestfiltering/