1 Answer
- Newest
- Most votes
- Most comments
2
Sounds like you are serving files directly from S3 using presigned URLs.
I would recommend serving your content through CloudFront as signed urls and using your S3 bucket as an origin. CloudFront offers geolocation restrictions so you can set it to only allow USA traffic.
Relevant content
- asked 4 years ago
- Accepted Answerasked 8 months ago
- asked 9 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
Thank you David, can you share some articles/kb info on how to go about that? I am completely new to AWS. Appreciate you answering!
Here is the How-To documentation: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/georestrictions.html
Hello! I would recommend starting with a basic cloudfront distribution and then assigning your bucket as the origin. This will help you here: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/GettingStarted.SimpleDistribution.html
Then go ahead and use the above user's link to the docs on georestricting. If this helped solve your issue please select it as the accepted answer. Have a great day!