Answer the question
In order to leave comments, you need to log in
How to hide the folder with files in the public directory of the site?
Hello, I have a Symfony4 project whose public directory is /public.
In this directory, I have a couple of folders that contain files. Can I somehow prevent access to these files through direct links? For example, if a user enters the address mysite.com/uploads/img/file.jpg in a browser, then he would not be able to see this file.
Answer the question
In order to leave comments, you need to log in
<Files uploads/img/*>
deny from all
</Files>
<img/>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question