AWS WAF率限制每个主机名
到目前为止,我们一直在为一个主机使用速率限制规则-300个每5分钟的请求foo.dev.com
(输入回复到ALB)
,现在我们想将更多规则拆分,所以我们对不同的主机名(all veral asl Same Alb)有不同的规则,因此我们可以实现:
aaa-foo.dev.com
- 每5分钟100个请求bbb-foo.dev。 com
- 每5分钟的200个请求
aaa
和bbb
将是我们的应用程序将服务的不同客户端,
请提供一些提示!
So far we've been using rate limit rule for a single host - 300 requests per 5 minutes for foo.dev.com
(entry resolves to ALB)
Now we want to split a bit more the rule so that we have different rules for different hostnames (all resolving same ALB) so that we achieve for example:
aaa-foo.dev.com
- 100 requests per 5 minutesbbb-foo.dev.com
- 200 requests per 5 minutes
aaa
and bbb
will be different clients that our app will serve
Please help out with some hints !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是我设法解决此问题的方式,使用
bytematchstatement
比较主机标头starts_with
'{clientname}',希望它可以帮助某人:Here is how I managed to solve this, used
ByteMatchStatement
comparing if the host headerSTARTS_WITH
'{clientname}', hope it helps someone: