【发布时间】:2019-03-27 19:46:54
【问题描述】:
我有一个正在运行的 API 和一个用于 SSR 目的的前端节点服务器。一切都在使用应用服务的 Azure 上。
节点服务器和客户端都向 API 发出请求。
我正在尝试在我的 API 的 web.config 中应用“dynamicIpSecurity”,但不希望我的节点服务器 IP 受到该安全设置的限制,因为它是受信任的“客户端”。
目标是通过此设置限制所有其他客户端 IP,以防客户端决定在未经我许可的情况下尝试对我进行 ddos 攻击或负载测试我的 API 以发现漏洞。
我目前已将动态 ip 安全设置注释掉,但这就是它们的外观。
<dynamicIpSecurity>
<!--Restricting single IP to make maximum of 20 concurrent request at a time-->
<denyByConcurrentRequests enabled="true" maxConcurrentRequests="20" />
<!--Restricting single IP NOT to make more than 50 requests within 3 seconds duration-->
<denyByRequestRate enabled="true" maxRequests="50" requestIntervalInMilliseconds="3000"/>
</dynamicIpSecurity>
【问题讨论】:
标签: azure api iis web-config