加拿大华人论坛 美国华人新闻How to Remove IIS "Server" Header?
在加拿大
可以通过代码实现: 代码: public class Module : IHttpModule{public Module(){}#region IHttpModule Memberspublic void Dispose(){return;}public void Init(HttpApplication context){context.EndRequest += new EventHandler(context_EndRequest);}void context_EndRequest(object sender, EventArgs e){HttpApplication app = (HttpApplication)sender;app.Response.Headers.Remove("Server");}#endregion 但是仅限于IIS7+.net 3.0+The Headers property is only supported with the IIS 7.0 integrated pipeline mode and at least the .NET Framework 3.0. When you try to access the Headers property and either of these two conditions is not met, a PlatformNotSupportedException is thrown.
·加拿大新闻 安省不再推进取消租务管制及无限期租约计划
·加拿大新闻 百年辉煌幻影再现!劳斯莱斯推出幻影“百年华诞”专属典藏版
·加拿大新闻 包机遣返!加拿大全国突袭无证印度人!数十人被捕,社区恐慌
·加拿大新闻 十月俄罗斯藏着“金环小镇”人少景美还出片
·加拿大新闻 斯柯达1000MBX概念车:颜值在线
·汽车 迂回咆哮
·汽车 家庭充电








