How could I stop access to a directory from the outside, for example a dir with images, and only allow it via the Rails app? -- Posted via http://www.ruby-forum.com/.
Hi Pål Bergström If you mean directory inside a rails application, for example public/images, then it can be accessed through the application only Sijo -- Posted via http://www.ruby-forum.com/.
Sijo k g wrote:> Hi Pål Bergström > > If you mean directory inside a rails application, for example > public/images, then it can be accessed through the application only > > > SijoGreat. Thanks. -- Posted via http://www.ruby-forum.com/.
On Oct 26, 10:16 am, Pål Bergström <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> How could I stop access to a directory from the outside, for example a > dir with images, and only allow it via the Rails app?If you don''t want your webserver to just serve up the file then don''t put the file inside your document root (ie don''t put it in your app''s public folder). Fred> -- > Posted viahttp://www.ruby-forum.com/.