有没有办法防止在CloudFlare或其他方式下直接下载直接文件?
我有大约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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用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")