Skip to main content
Topic: Restrict Users from accessing files (Read 644 times) previous topic - next topic

Restrict Users from accessing files

My PHPRad project has user authentication enabled. And it works well.
However, I have realized that if an authorized user has a link to a file, and he shares it with any unauthorized user, the unauthorized user can simply access the link and download the file

for example : www.phpradproject.com/uploads/files/Little%20Red%20Riding%20Hood%20Presentation.ppt
From this link, anyone can download the ppt file. How can I avoid that?

From my limited research, I've learned that I need to work in the  ".htaccess" file to restrict users from accessing other folders and files.
Can you tell me the actual method ?