void Application_PreSendRequestHeaders(object sender, EventArgs e) { Response.Headers.Remove("Server"); Response.Headers.Remove("X-AspNet-Version"); }
<httpProtocol> <customHeaders> <add name="X-Frame-Options" value="SAMEORIGIN" /> <add name="X-XSS-Protection" value="1; mode=block" /> <add name="X-Content-Type-Options" value="nosniff" /> <add name="Strict-Transport-Security" value="max-age=31536000; includeSubDomains" /> <remove name="X-Powered-By" /> </customHeaders> </httpProtocol>
<httpErrors> <remove statusCode="404" subStatusCode="-1" /> <error statusCode="404" prefixLanguageFilePath="" path="http://localhost/eaudit/error.aspx" responseMode="Redirect" /> </httpErrors>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)