PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
drbyte wrote:Can s2m protect subdomains? http://site.main.com using URI Level Access Restrictions...If not..is there a hack for it?
drbyte wrote:Is he taking cover from Hurricane Irene that is passing by the East Coast? I know he's in Georgia but not sure how close the hurricane will come his way...I suppose just the end of it
Jason Caldwell wrote:Hi Sam. So just to be clear.
The vulnerability that you found is when/if CloudFront is introduced, is that right?
I'm assuming that you configured CloudFront as "Streaming". That explains why you're having better luck with videos and seeking. Traditional file delivery protocols do not support "streaming" media, but a CloudFront Distribution can be configured to do so.
I'm not sure if it's possible to integrate s2Member with the Amazon S3 / CloudFront combination though, is it? Please enlighten me if you'd like to. I must confess, I don't much about CloudFront yet, and s2Member's file delivery integration with Amazon S3 is not currently designed to work with CloudFront, as this essentially creates an open distribution, making files vulnerable, or am I missing something?
*Dev Note* s2Member uses "Query String Authentication", provided by the Amazon® S3 API. Documented for developers here. To put it simply, s2Member will generate S3 authenticated redirect URLs ( internally ); which allow Customers temporary access to specific files inside your S3 Bucket.
s2Member assumes that you're creating a new Amazon® S3 Bucket, specifically for s2Member-protected files; and that your Bucket is NOT available publicly. In other words, if you type this URL into your browser ( i.e. http://s3.amazonaws.com/your-bucket-name/ ), you should get an error that says: Access Denied. That's good, that's exactly what you want.
See this thread for details: viewtopic.php?f=4&t=10054&p=20269&hilit=amazon+permissions#p20269
http://www.site.com/?s2member_file_inline=yes&s2member_file_download=/video.mp4
http://bucketname.s3.amazonaws.com/video.mp4?response-cache-control=no-cache%2C+must-revalidate%2C+max-age%3D0%2C+post-check%3D0%2C+pre-check%3D0&response-content-disposition=inline%3B+filename%3D%22video.mp4%22&response-content-type=video%2Fmp4&response-expires=Tue%2C+23+Aug+2011+07%3A32%3A11+GMT&AWSAccessKeyId=AKIAJYAXYKPMZ2EFF5LA&Expires=1314689561&Signature=v4DJAznbWd6qETm6U2MHxgZY3kk%3D
http://www.site.com/?s2member_file_inline=yes&s2member_file_download=/video.mp4
http://www.site.com/sing-up.php
As a member:
This:
Code: Select all
http://www.site.com/?s2member_file_inli ... /video.mp4
Translate to this:
Code: Select all
http://bucketname.s3.amazonaws.com/vide ... xgZY3kk%3D
Which the only part that I need is this: http://bucketname.s3.amazonaws.com/video.mp4 to make my case, the rest does not server any good for the above example. since that file if open to public then it's freely can be copied, downloaded, and embedded on the net.
http://www.site.com/?s2member_file_inline=yes&s2member_file_download=/video.mp4
http://bucketname.s3.amazonaws.com/video.mp4
http://bucketname.s3.amazonaws.com/video.mp4?response-cache-control=no-cache%2C+must-revalidate%2C+max-age%3D0%2C+post-check%3D0%2C+pre-check%3D0&response-content-disposition=inline%3B+filename%3D%22video.mp4%22&response-content-type=video%2Fmp4&response-expires=Tue%2C+23+Aug+2011+07%3A32%3A11+GMT&AWSAccessKeyId=AKIAJYAXYKPMZ2EFF5LA&Expires=1314689561&Signature=v4DJAznbWd6qETm6U2MHxgZY3kk%3D
The only solution that seems to work with apple devices and the rest (-windows mobile) without any problems is the HTML5 video tags.
{
"Version":"2008-10-17",
"Statement":[{
"Sid":"AllowPublicRead",
"Effect":"Allow",
"Principal": {
"AWS": "*"
},
"Action":["s3:GetObject"],
"Resource":["arn:aws:s3:::the bucket name/*"
]
}
]
}
Users browsing this forum: Yahoo [Bot] and 0 guests