Geo restriction in AWS CloudFront

0

Not able to restrict the user by Geo restricting them located in different locations from accessing the data thru Amazon CloudFront distribution for my Amazon S3 origin.

Tried blacklisting the countries in the created CloudFront distribution settings but not able to test it successfully. Even tried AWS WAF ACL but no success.

Please advise how I can test the Geo restriction successfully.

Thanks and regards,
Ankit Sharma
New learner

已提問 4 年前檢視次數 415 次
1 個回答
0

There are a number of GeoLocation testing sites out there. GeoPeeker is one of them and was used here: https://youtu.be/iOPjEkmV8hI

Not sure if CloudFront GeoRestriction is based on the origin IP though. So unless they are looking at the X-Forwarded-For header it's essentially useless if user is connecting via a proxy or load balancer.

bflone
已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南