Stop outside access to directory

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?

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

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

Sijo

Great. Thanks.

On Oct 26, 10:16 am, Pål Bergström [email protected]
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