0
I have a folder structure mounted as follows:
System - data - css - Connections (database) - images
In the data folder I make the files available for authenticated users to download. However, if I put in the address bar, for example, www.meusite/sistema/dados/usuario1/documento1.pdf
, it downloads normally without being logged in. I have tried to block by .htaccess
, but it blocks everything and not even the logged-in user can download.
How can I solve this problem by giving access only to logged in users?