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

asked 4 years ago403 views
1 Answer
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
answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions