Here's a good walk-through explaining some solutions to this problem.
Basically, you create a view that streams the file to the visitor with
send_file from a protected location -- not the usual public/system
space enjoyed by a normal Paperclip install.
http://everydayrails.com/2010/07/08/authenticated-attachments-paperclip-rails.html
Walter
On Sep 27, 2010, at 5:22 AM, Sunny Ezror wrote:
I'm having the same trouble with securing my videos for my latest
app. A
simple before_filter can stop the user from accessing the page, but
once
the video streams via a web player, the user can easily steal it.
Only solution I can think of is to use amazon s3's url expiration, but
that gets overly complicated.
-sunny
http://ezror.com
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google
Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-
[email protected].
To unsubscribe from this group, send email to [email protected]
.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
.
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.