I want to protect the upload-folder in my codeigniter project.
In this upload-folder is a sub-folder for every user of my project Example
uploads/user1
uploads/user2
Now I want to make sure that there is only a single way to access if the user is logged in.
So I edit with htaccess files for the upload/
# Disable directory browsing
Options -Indexes
And for the sub-user-folders
<IfModule authz_core_module>
Require all denied
</IfModule>
<IfModule !authz_core_module>
Deny from all
</IfModule>
But it wont work. One time I have no access to all or at the other hand I can access all...
Is it possible to know, what I'm doing wrong or is there a better way to do?
Thanks a lot.