加拿大华人论坛 美国华人新闻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.
·加拿大新闻 2025日本移动出行展 全新雷克萨斯LS六轮概念车首发
·加拿大新闻 多伦多第六场世界大赛门票价格曝光:最便宜1600元还可能无座
·加拿大新闻 细聊雷克萨斯LSMicro这个小东西,这到底是个什么?
·加拿大新闻 日产发布全新MPV君爵搭载防晕车黑科技预计25万起售
·加拿大新闻 父母最大的成功,是在两件事上不管孩子,越不管,越有出息
·中文新闻 关于莉莉·艾伦、大卫·哈伯和 P**** Palace 的真相:当音乐业内人
·中文新闻 《叛徒》明星凯特·加拉威承认,她拒绝参加剧中的棺材特技,








