3

When assets like images or files are in the rails public directory with asset pipeline enabled, is everyone allowed to access them through URL?

I am asking this because now I am learning about implementing File Uploading through Carrierwave with the help of the book, Rails 4 in Action, and it says the files should be moved outside the public folder for access control.

If assets are in the public folder, does it mean that we can't do access control?

Sookie J
  • 823
  • 2
  • 8
  • 16
  • 1
    everything inside public is accessed by the server..such as images,js and css files..so you can easily access it by localhost:80.com/images/ring.gif or http://myapp.herokuapp.com/images/ring.gif – Milind Nov 15 '16 at 03:27

1 Answers1

3

Any one can access the contents of public folder through URL.

Ref:

Are files in public folder accessible to outside world? - Rails

Community
  • 1
  • 1