Blog author:
Rajkatie | Posted on: 4/25/2012 | Category:
ASP.NET Blogs | Views: 974 | Status:
[Member] |
Points: 75
|
Alert Moderator
When an HTTP request is made to a IIS, HTTP headers
are transferred from the Browser to the webserver and vice-versa. The
HTTP Headers sent by IIS to the browser gives following information.

In the above image, following two header not required. By removing it we can save small amount of bandwidth usage of .net application and potentially improving site secutiry.
1) x-powered-by
2) x-aspnet-version
We can remove above two header using a site specific web.congfig file
1) Remove aspnet-version
<system.web>
<httpRuntime enableVersionHeader="false"/>
</system.web>
2) Remove x-powered-by
<system.webServer>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By"/>
</customHeaders>
</httpProtocol>
</system.webServer>
Rajesh Patel
MCPD,MS
Brainbench (Asp.Net 4.0 and CSS 3.0)
Found interesting? Add this to: