AWS API Gateway:限制来自单个IP的请求
AWS API Gateway是否允许限制来自单个IP的请求数量?
Does AWS API Gateway allows limiting a number of requests from a single IP?
我正在构建一个公共API,并希望通过限制可以从单个IP地址调用该API的次数(例如每分钟100个请求)来限制它的滥用.
I'm building a public API and would like to prevent it from being abused by establishing a limit on a number of times the API can be called from a single IP address (like 100 requests per minute).
谢谢
AWS API网关不提供您正在寻找的功能,但是有一种解决方法.
AWS API Gateway does not offer the functionality that you are looking for but there is a workaround.
您可以做的是将AWS API网关与AWS Cloud Front集成,并使用AWS Web Application Firewall规则来限制来自特定IP地址的API调用.
What you can do is Integrate AWS API gateway with AWS Cloud Front and use AWS Web Application Firewall Rules to limit the API call from a Specific IP address.
检查本指南以实施WAF. http://docs.aws.amazon.com/waf/latest/developerguide/tutorials-rate-based-blocking.html
Check this Guide for implementing the WAF. http://docs.aws.amazon.com/waf/latest/developerguide/tutorials-rate-based-blocking.html