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-
> talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> .
> 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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.