How can I filter access to static content (images, movies, pdf, ...). I''m familiar with filtering access to parts of a website, but how can I manage to filter access to static files (uploaded images,...)? Greetz Geoffroy -- 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.
Geoffroy Gomet wrote:> How can I filter access to static content (images, movies, pdf, ...). > I''m familiar with filtering access to parts of a website, but how can > I manage to filter access to static files (uploaded images,...)?Apache configuration or .htaccess file? This isn''t really relative to Rails. Requests for static content are generally served by the front end web server (Apache, Nginx, etc.) and never hit your Rails application. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
That''s just what I''m asking, how to let Rails handle some static content. An example of what I mean : Someone upload a picture he wants to be the only one to see even if someone else know the url of the picture. Should there be a controller dedicated to filter and return the pictures (with something like sendfile) On Mar 9, 10:19 pm, Robert Walker <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Geoffroy Gomet wrote: > > How can I filter access to static content (images, movies, pdf, ...). > > I''m familiar with filtering access to parts of a website, but how can > > I manage to filter access to static files (uploaded images,...)? > > Apache configuration or .htaccess file? > > This isn''t really relative to Rails. Requests for static content are > generally served by the front end web server (Apache, Nginx, etc.) and > never hit your Rails application. > -- > Posted viahttp://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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.