Answer the question
In order to leave comments, you need to log in
How to deny access to a directory on the entire server?
Hello! There are a lot of directories on the server, their paths are something like this (different):
/uploads/files/1/art/
/uploads/post/art/
/uploads/files/2/art/
/uploads/post/25/art/
Answer the question
In order to leave comments, you need to log in
<Directory ~ "art">
Order deny,allow
Deny from all
Allow from localhost
</Directory>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question