使用 ASP.NET MVC 创建私有文件系统
我想知道该怎么做才能保护我的 asp.net mvc 应用程序上的文件,以便用户无法在没有系统生成的链接的情况下抓取文件目录或下载文件(以便我可以在授予权限之前检查用户权限)系统生成的链接)。理想情况下,每个用户的链接也会有所不同(或者至少用户无法猜测其他链接)
提前感谢您的任何帮助
I would like to know what to do in order to secure the files on my asp.net mvc application so that a user cannot crawl the file directory or download the file without a system generated link (so that I can check user permissions before giving the system generated link). Ideally the link would be different per user as well (or at-least something that a user won't be able to just guess the other links)
Thank you for any help in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要一个文档管理系统。
当然,您可以用 MVC 编写一个 :)
将所有重要的内容存储在其中,然后通过网站提供链接...许多人一起使用内容管理系统和文档管理系统来提供完整的解决方案。
这导致基于经过身份验证的用户和他们想要访问的路径之间的权限映射提供受控的“虚拟”文件系统。
You need a document management system.
You could write one in MVC of course :)
Store all the important stuff in that then provide links via a web site ... many use content management systems and document management systems together to provide a complete solution.
this results in a controlled "virtual" file system being made available based on permissions mappings between an authenticated user and the path to which they intend to gain access.