有没有办法防止在CloudFlare或其他方式下直接下载直接文件?

发布于 2025-02-01 03:33:18 字数 237 浏览 5 评论 0原文

我有大约1保持pdf文件的trabyte,如果您知道文件的路径,即使您未在Web应用程序上登录,也可以下载它。网络在Cloudflare下,我想知道,如果您未记录,是否有规则可以防止直接下载。

我应该使用文件传输Web服务吗?我必须移动文件necesarilly吗?

我在Windows Server 2012 R2上有文件,Web应用程序在WebForms C#上。

我们正在迁移到另一个系统,但我现在需要保护文件。

I have about 1 Terabyte of pdf files where if you know the path ofthe file you can download it even if you are not logged on the web application. The web is under Cloudflare and I was wondering if there is a rule that you can use to prevent direct download if you are not logged.

Should I use a file transfer web service? Do I have to move the files necesarilly?

I have the files on a Windows Server 2012 R2 and the web application is on WebForms C#.

We are migrating to another system but I need to protect the files for now.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

无可置疑 2025-02-08 03:33:18

您可以使用WAF规则

(http.request.uri.path包含“/files”和http.host eq“ domain.com”)阻止对整个目录的访问

You can block the access to the entire directory with a WAF rule e.g.

(http.request.uri.path contains "/files" and http.host eq "domain.com")

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