我想隐藏所有的信息,像角,asp.net,iis版本和.在我的网站上。擦拭器图像
我在MvcHandler.DisableMvcResponseHeader ()和Application_Start()中添加了MvcHandler.DisableMvcResponseHeader= true;在Application_PreSendRequestHeaders和web中添加了Application_Start()。1:https://i.stack.imgur.com/sAVe7.png
发布于 2021-05-19 07:22:54
您不能隐藏所有信息,但可以隐藏iis版本、ASP.NET版本、服务器类型等。
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.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.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.https://stackoverflow.com/questions/67584329
复制相似问题