gpt4 book ai didi

azure - 使用 Azure 应用程序网关阻止所有 http/https 流量的 WAF 规则

转载 作者:行者123 更新时间:2023-12-02 07:32:47 25 4
gpt4 key购买 nike

在配置 WAF 时,我习惯于配置最低优先级规则来阻止所有入站 http/https 流量。然后,我添加更高优先级的允许规则来打开我需要的访问权限。

我看不到如何在 Azure 应用程序网关的 WAF 自定义规则中创建“阻止所有”规则?

最佳答案

所以..这就是你可以做到这一点的方法(抱歉,配置是 terraform 格式)

自定义规则{名称 =“阻止所有路径”优先级 = 90rule_type =“匹配规则”

match_conditions {
match_variables {
variable_name = "RequestUri"
}
operator = "BeginsWith"
negation_condition = false
match_values = ["/"]
}

action = "Block"

}

关于azure - 使用 Azure 应用程序网关阻止所有 http/https 流量的 WAF 规则,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71649696/

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