Hello, I am writing a php script that will contain a publicly visible section as well as a “members-only” section. I would like to incorporate a feature for members to upload files and mark them as either publicly visible or require that users log in in before being able to view them. I am wondering what the best way would be to do this.
I’ve researched some methods such as utilizing .htaccess, uploading files outside public_html, etc. but am not sure which method is the most secure. I would appreciate any recommendations on how to do this.
Thanks!