gpt4 book ai didi

azure - Microsoft Azure DDOS 防护

转载 作者:行者123 更新时间:2023-12-04 14:56:48 33 4
gpt4 key购买 nike

我正在 Microsoft Azure 中运行企业级应用程序。我想知道 Microsoft Azure 中 DDOS 投影的建议是什么。该文档明确指出该平台受到 DDOS 保护,但没有提供更多详细信息。我对Azure DDOS的理解是

  • 如果其他客户受到 DDOS 攻击,您的应用程序不会受到影响
  • 如果您的应用程序受到 DDOS 攻击,Microsoft 将停止与您的端点的所有连接,并实际上关闭您的服务。

基于这种理解,我宁愿阻止来自特定 IP/IPS 集的连接,而不是关闭整个应用程序。

我是否可以更好地使用 Incapsula 这样的产品来防御 DDOS?

最佳答案

Azure 不会保护你的应用免受 DDOS 攻击。因此,您应该使用 dynamicIpSecurity如果还不够,请使用 CloudFlare

Web.config

 <system.webServer>
.
.
<security>
<ipSecurity allowUnlisted="true">
<!-- Add Here trusted Ips-->
<add ipAddress="1.1.1.1.1" allowed="true" />
</ipSecurity>

<dynamicIpSecurity denyAction="Forbidden">
<denyByConcurrentRequests enabled="true" maxConcurrentRequests="20" />
<denyByRequestRate enabled="true" maxRequests="30" requestIntervalInMilliseconds="1000" />
</dynamicIpSecurity>

</security>

</system.webServer>

The <denyByRequestRate> element specifies that a remote client will be blocked if the number of requests received over a period of time exceeds a specific number.

The <denyByConcurrentRequests> element specifies that a remoteclient will be blocked if the number of concurrent HTTP connectionrequests from that client exceeds a specific number.

所以在这个例子中;如果某个客户端(ip)发出 20 个并发请求,或者一秒发出 30 个请求,则该客户端(ip)发出的其他请求将得到 403。

关于azure - Microsoft Azure DDOS 防护,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35317910/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com