locked
Remove Server information from HTTP header response? RRS feed

  • Question

  • User417741264 posted

    How to remove Server information in Http header programatically?i don't want to use Urlscan or any other tool

    In Global.asax file Application_PreSendRequestHeaders event i have below code

    Response.Headers.Remove("Server");

    And i tried same thing in custom httphandler also,But some how it doesn't remove Server information.

    How to fix this problem,from where else server information is pushing into Http response? 

    Thursday, July 14, 2016 9:32 AM

Answers

  • User-782232518 posted

    The header is inserted into the response message at driver level, so unless you use URLScan or on IIS 10, there is no other easy way to fix that.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 20, 2016 7:12 AM