Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is everyone allowed to access rails public folder via URL?

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?

like image 674
Sookie J Avatar asked Nov 29 '25 05:11

Sookie J


1 Answers

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

Ref:

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

like image 182
Premanandh Selvakumarasamy Avatar answered Nov 30 '25 18:11

Premanandh Selvakumarasamy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!