2 Answers
- Newest
- Most votes
- Most comments
4
You can create your CloudFront distribution with API Gateway as origin, and implement geo-restriction.
More information at How do I set up API Gateway with my own CloudFront distribution?
You can also use AWS WAF to protect API Gateway. Create a custom rule that does geo-restriction, as per How do I use AWS WAF to allow or block requests from a specific country or geolocation?
0
Hi,
I'd suggest to use WAF for this: see https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-type-geo-match.html to block / allow by country or region.
Best,
Didier
Relevant content
- asked 3 months ago
- asked 2 years ago
- AWS OFFICIALUpdated 8 months ago
