AWS WAF - Implement a rate limit rule using URI Path
ฝัง
- เผยแพร่เมื่อ 10 ก.พ. 2025
- In this video, I will demonstrate another use case: implementing a rate-limit rule using the URI path. By using the URI path in a scope-down statement, you gain fine-grained control over where the rate limit applies. For example, you can limit requests to a login page, payment page, or POST method-specific API endpoint, while excluding content retrieval or GET-related API endpoints from the rate limit.
We’ll apply AWS WAF with this rate-limit rule to a REST API endpoint exposed via AWS API Gateway. The WAF will evaluate the rule and either allow or block the API request based on the rule. The rate limit will be enforced using the URI path in the scope-down statement.
If a request exceeds the rate limit, AWS WAF will return a 403 Forbidden status code.
In the previous video workshop, I demonstrated how to secure your CloudFront distribution or website using AWS WAF (Web Application Firewall). I also showed how to send custom response codes and messages using AWS WAF, and how to rate-limit an API endpoint with WAF.
If you missed it, be sure to check out the tutorial (linked in the description) before continuing.
Link: how to secure your CloudFront distribution or website using AWS WAF
• AWS WAF - Protecting C...
Link to how to send custom response code using AWS WAF
• AWS WAF - How to send ...
Link to implement a rate limit using AWS WAF
• AWS WAF - How to imple...