简体   繁体   English

如何从 IIS Web 农场中删除 X-Powered-By: ARR/3.0?

[英]How to remove X-Powered-By: ARR/3.0 from IIS Web Farm?

I am asked to remove all powered-by response headers from an IIS/ARR hosted website.我被要求从IIS/ARR托管网站中删除所有powered-by响应标头。 As always I followed the instructions from this article .一如既往,我遵循了这篇文章中的说明。 I applied the required registry configuration, this is the only option worked for me before.我应用了所需的注册表配置,这是之前对我有用的唯一选项。 The other options does not seem to be a solution for me because the second option is deprecated and the third option does not completely remove the header. I used this solution (Using the Registry key) successfully in the past on other IIS based websites but now it is not working in this case.Any Idea about how can I debug the problem or another potential solution is highly appreciated.其他选项对我来说似乎不是解决方案,因为第二个选项已被弃用,第三个选项未完全删除 header。我过去在其他基于 IIS 的网站上成功使用了此解决方案(使用注册表项),但现在在这种情况下它不起作用。非常感谢任何关于如何调试问题或其他潜在解决方案的想法。

You can find 2 "X-powered-By" headers if you use the arr.如果您使用 arr,您可以找到 2 个“X-powered-By”标头。

One is X-powered-By: ASP.NET .To disable this, remove it from Response Headers module from both arr server, back-end server,server level and website level.一个是X-powered-By: ASP.NET 。要禁用它,请从 arr 服务器、后端服务器、服务器级别和网站级别的 Response Headers 模块中将其删除。

在此处输入图像描述

Second is X-powered-by: ARR/3.0 .To disable this,open the arr_scheme.xml file in ARR server.第二个是X-powered-by: ARR/3.0 。要禁用它,请在 ARR 服务器中打开arr_scheme.xml文件。

C:\Windows\System32\inetsrv\Config\Schema\arr_schema.xml

在此处输入图像描述

Find this attribute arrResponseHeader and change the defaultValue to false .找到这个属性arrResponseHeader并将 defaultValue 更改为false

在此处输入图像描述

Save to file and restart the server, all "X-powered-by" header disappear.保存到文件并重启服务器,所有“X-powered-by”header 消失。

This is test result:这是测试结果:

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM