Should be quite simple. Don't have the admin files symlinked to public. Instead use laravel to manually send the files to the browser from a controller (which you can then secure with middleware)
Secure files vs non secure files - Best way to go about
Hello,
I have a question regarding 2 types of PDF I need to upload to a website.
PDF type 1 can be public PDF type 2 should be very secure and only accessible via the admin interface.
ie:If you go from the web and try to access the file, you cannot and must not!
I will install Laravel below the public_html, add the public folder in the public_html and then symlink the storage below root to the public above the root.
My question is..... How to protect the secured PDFs from the public PDF folder?
Both will be uploaded from the admin interface but obviously into 2 separate folders /pdf/Secure /pdf/public . I would like to know more about people who had to do something similar please, which security implementation or method did you use to have 2 uploads completely independent from each other when it comes to security.
Thank you.
Please or to participate in this conversation.