如何在Node Azure Function App中禁用服务器信息以防止横幅广告被抢?帮助! [英] How to disable server information in Node Azure Function App to prevent banner grabbing? Help!

查看:64
本文介绍了如何在Node Azure Function App中禁用服务器信息以防止横幅广告被抢?帮助!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行以下命令之后:

nmap -sV-脚本标题[服务器] .azurewebsites.net

我可以在节点Azure功能应用程序中看到Microsoft IIS版本.我需要禁用该信息的输出.我可以获取有关如何完成此操作的指导吗?

After running the following:

nmap -sV --script banner [server].azurewebsites.net

I am able to see the Microsoft IIS version in a node Azure Function app. I need to disable the output of that information. Can I get some guidance on how to accomplish this?

谢谢!


推荐答案

您可以使用Azure函数代理(特别是
You can use Azure Function Proxies (specifically the response override settings) to set the relevant headers ("X-Powered-By" and "Server"). You need to add a proxy for every function in your application, or set a proxy that captures all routes. Note that if you do the latter, only one proxy can execute per request, so you may need to play around with ordering if you want to add other proxies as well.


这篇关于如何在Node Azure Function App中禁用服务器信息以防止横幅广告被抢?帮助!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆