加拿大华人论坛 美国华人新闻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.
·加拿大新闻 别克GL8不再是唯一选择,高端新能源MPV市场格局生变
·加拿大新闻 回收新制年初上路即翻车多地垃圾混乱
·加拿大新闻 “你愿说,我愿听”:退休社工走遍加国 免费倾听助陌生人不
·加拿大新闻 卡尼暗示将在乌克兰驻军,会见丹麦首相,强调格陵兰主权
·加拿大新闻 "腿都伸不开"!加拿大知名航司新飞机被骂翻!网
·中文新闻 马丁·克鲁内斯 (Martin Clunes) 在新剧中变身休·爱德华兹 (Huw Edw
·中文新闻 当朋友们讲述他们对他们的阴谋感到震惊以及他们如何向他们隐








