使用 ASP.NET MVC 创建私有文件系统

发布于 2024-12-23 00:37:30 字数 157 浏览 3 评论 0原文

我想知道该怎么做才能保护我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浅忆流年 2024-12-30 00:37:30

您需要一个文档管理系统。
当然,您可以用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文