• Post Reply Bookmark Topic Watch Topic
  • New Topic

Restricted downloads from the amazon s3 service

 
Mansi Mishra
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to host some files (images/videos etc) into the amazon s3 service. I need to ensure two things:

1. Restrict unauthorized access to the files ( Can I use OAuth to achieve the authentication?)
2. How can I make sure that the file can be downloaded only once? This is to ensure that the user does not bookmark the url and download multiple times, he can download the file only through the application.

Appreciate your help
-Manaswita
 
Tim Holloway
Bartender
Posts: 18471
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you read this? https://aws.amazon.com/s3/faqs/#security

There's really no way to limit the number of downloads of an S3 resource. If you want to do that, then you'd need to only permit access via some sort of user-designed application and have that application enforce the restriction.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!