php - Let only registered users download from my Amazon S3 bucket -


i'm building php website keep content files on amazon s3. website files (with php code) hosted on traditional server. users register on website , after registering , logging in have access files on s3.

the question is, how let logged in users download files , prevent else downloading? aws iam have involved somehow?

i don't want expiring urls. want give access files specific user , don't want them share link else period of time.

in future want limit access files registered users - depending on type of user account user have access different files.

thx in advance replies!

this can done... use ror instead of php application controls access data in s3 bucket. have buckets app can access , file access limited credentials in app. make sense?

i have public bucket store assets (publicly available images) , bucket application can access. users in application can access bits of bucket based on credentials.

the database stores reference exact s3 file / location, how access (encrypted credentials , keys passed during transaction), , can access it.

read on serving web assets s3 bucket , creating upload form s3 bucket. give idea of how interact wit s3 buckets. once can interact bucket content can control access web application.

good luck!


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -