Answer the question
In order to leave comments, you need to log in
How to prohibit downloading private files from the server?
How to hide files from downloading? For example, I have a video that is available only to a group of users, but if someone sends a link to this video, then prohibit it from downloading and see how to implement it correctly? Please tell me which direction to look.
I looked at the ban through nginx, but as I understand it, it will become unavailable even for display on the site itself
location ^~ /files/score/ {
deny all;
return 404;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question