Here is the situation: I have an Apache server , which hosting a php program, the program allow user to login and the user can upload files, and share their upload files to others, so, I have a folder called "attachment" in the htdoc folders, which is store the user s attachement. But I don t want people get access to this folder directly, I only let some users(base on their user right), to get the file they want, others, can get access to that file...
例如,一个上载文件——a,与B、C. 用户B共享,C可以通过链接传送链接,但用户D甚至可以链接,但是他/她仍然可以下载,即使他/她正在伐木。 我如何检查? 谢谢。