Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我开发网站,用户可以在其中上传 doc、pdf 和文本文件。他们还可以查看文件列表和删除文件。问题是这个文件有个人数据。我可以保护这些文件吗?我希望管理员和版主看到这些文件,但我也希望防止其他人随机下载。我希望我解释清楚。
将它们放在 webroot 之外的某个位置,只能通过您的系统访问。每当有人尝试访问它时,请检查他的权限,如果他们没问题,则提供该文件。