我们可以通过程序来解决这个问题,将server头删除或自定义。
方法见http://www.cnblogs.com/wintersun/archive/2011/08/07/2129942.html。
大致就是自定义HttpModule,然后Response.Headers.Remove("Server")。
但是,在经典模式下header为null,这个代码只能运行在集成模式下。
我们可以通过程序来解决这个问题,将server头删除或自定义。
方法见http://www.cnblogs.com/wintersun/archive/2011/08/07/2129942.html。
大致就是自定义HttpModule,然后Response.Headers.Remove("Server")。
但是,在经典模式下header为null,这个代码只能运行在集成模式下。