首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何将asp.net技术隐藏在iis上的Wappalyzer中?

问如何将asp.net技术隐藏在iis上的Wappalyzer中?
EN

Stack Overflow用户
提问于 2021-05-18 10:20:43
回答 1查看 914关注 0票数 0

我想隐藏所有的信息,像角,asp.net,iis版本和.在我的网站上。擦拭器图像

我在MvcHandler.DisableMvcResponseHeader ()和Application_Start()中添加了MvcHandler.DisableMvcResponseHeader= true;在Application_PreSendRequestHeaders和web中添加了Application_Start()。1:https://i.stack.imgur.com/sAVe7.png

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-05-19 07:22:54

您不能隐藏所有信息,但可以隐藏iis版本、ASP.NET版本、服务器类型等。

  • 隐藏IIS版本。HTTP报头“X驱动-By”显示服务器上使用的IIS版本。若要停止此操作,请删除标题:

代码语言:javascript
复制
1. Open the IIS Manager.
2. In the Connections tree, select the website that SS is running under.
3. Click the HTTP Response Headers button on the right. The HTTP Response Headers panel appears.
4. Click to select the X-Powered-By HTTP header.
5. Click the Remove button in the Actions panel. The header disappears.

  • 隐藏ASP.NET版本。header“”显示SS应用程序池正在使用的ASP.NET版本。若要停止此操作,请删除标题:

代码语言:javascript
复制
1. Open the web.config file, which is located in the root directory for the website.
2. Inside the <system.web> tag, add the tag .
3. Save the file.

  • 隐藏服务器类型。.NET框架将header行Server: Microsoft/2.0添加到报头中。若要删除该信息,必须更新Windows注册表:

代码语言:javascript
复制
1. Open the Windows Registry Editor.
2. Navigate to Computer\HKEY\_LOCAL\_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters.
3. Change the DisableServerHeader (REG\_DWORD type) registry key from 0 to 1.
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67584329

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档