I have problem with chmod on my server. For client I build security link for download file like:
mydomain.com/download/123
It work ok, function download use file_get_content and header and it's works, but when I open link for example:
mydomain.com/upload/somefolder/somefile.jpg
This file view too :(
what chmod I must set on folder upload to block link direct and allow to download via header() file_get_content() ?