rubyonrailsin

A Ruby and Rails talk

Friday, March 12, 2010


[Rails] Protecting static assets

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

How can I protect static assets behind authentication.
I'm familliar with protecting dynamic pages but how to protect static
files?

An example would be : someone login to my application, upload a
picture and authorize only some users to see this picture.
How to avoid someone to access the picture, even if this pperson knows
the correct url of the file.

The solution is probably to let rails handle static files, but how to
force this behavior and how to handle differents file types (probably
through sendfile).

Greetz

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

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive