Question about securing videos

2 views
Skip to first unread message

egervari

unread,
Sep 26, 2010, 5:43:09 PM9/26/10
to Ruby on Rails: Talk
Assuming you want to stream some flv videos, what is the best way to
secure them via authentication while also embedding them in some kind
of web flash player?

Sunny Ezror

unread,
Sep 27, 2010, 5:22:33 AM9/27/10
to rubyonra...@googlegroups.com
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/.

Walter Lee Davis

unread,
Sep 27, 2010, 8:23:24 AM9/27/10
to rubyonra...@googlegroups.com
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

> --
> 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-
> ta...@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
> .
>

Reply all
Reply to author
Forward
0 new messages