I have file download section for my Customers (webusers). Files are located in directory under 'assets/'.
I can use static resources, but in this case i would rather use fileDownloadR -plugin. Filesizes are too big for hashed links, so i have to use directlink- option. In this case paths to my files is exposed to everybody.
How can i restrict this directory for signed-in webusers only?
if it needs to be direct links to the files you can't protect them to specific MODX-users
If you want them to be protected, you will need to protect the directory for example on apache with a 'deny from all' in .htaccess, if you can't put them outside the web-root.
Then you will have access only by php.
for example by static resources or filedownloadr
Why do you have to use directLink? Can you explain?
I ended up using FD custom links to static resources. I protected files itself with htaccess.
File sizes are too big to handle with FileDownloadR hashed links. I'm don't fully understand why, but what i understand server php memory limit should be at least same as file size. All files which are bigger than memory limit will be truncated.