AWS 添加了返回自定义状态代码的选项,而不是默认的 403。
来自这里:https://aws.amazon.com/blogs/security/customize-requests-and-responses-with-aws-waf/我为自己的规则添加了自定义状态,但似乎对于托管规则(例如网络安全云托管规则),无法更改操作和状态。
有人可以帮忙吗?
最佳答案
为此您必须使用标签:https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-labels.html
编写自定义规则以对标签进行操作,然后对您创建的自定义规则进行自定义响应。
Use custom responses to change the default block action for a managed rule group
关于amazon-web-services - AWS WAF : How to make custom response code with managed rules for block actions,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69432915/