amazon-web-services - AWS WAF : How to make custom response code with managed rules for block actions

标签 amazon-web-services amazon-waf

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/

相关文章:

Python AWS Boto URL 连接错误

android - 无法将 Amazon DynamoDB 导入 android?

amazon-web-services - 我可以通过 AutoScaling 在安静时段将实例计数减少到零吗?

amazon-web-services - WAF中的源IP地址和 header 中的IP地址有什么区别

amazon-web-services - 如何在 us-east-1 之外结合 AWS API Gateway 和 Application Load Balancer for HTTPS?

c# - 如何从 Amazon S3 Bucket 获取最早添加的对象?

aws-cloudformation - 云形成 : WAF Association always fails with Internal Failure

amazon-web-services - 弹性Beanstalk更改ELB类型

amazon-web-services - 使用 S3 和 CloudFront 防止图像盗链

amazon-web-services - 使用 AWS WAF 阻止 IP,以便只有连接到 VPN 的用户才能访问 CloudFront