[GH-ISSUE #591] can control the download perms? #352

Closed
opened 2026-04-08 16:52:16 +03:00 by zhus · 2 comments
Owner

Originally created by @yuf19-2022 on GitHub (Jun 23, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/591

Specific Demand

i have some file,and everybody can see them,but i want it need to login for downloading the file.eg:.video,i donnot want they download the video file,can only see

Implement Suggestion

Originally created by @yuf19-2022 on GitHub (Jun 23, 2025). Original GitHub issue: https://github.com/sigoden/dufs/issues/591 ## Specific Demand i have some file,and everybody can see them,but i want it need to login for downloading the file.eg:.video,i donnot want they download the video file,can only see ## Implement Suggestion <!-- If you have any suggestion for complete this feature, you can tell us. -->
zhus closed this issue 2026-04-08 16:52:16 +03:00
Author
Owner

@yuf19-2022 commented on GitHub (Jun 23, 2025):

Specific Demand

i have some file,and everybody can see them,but i want it need to login for downloading the file.eg:.video,i donnot want they download the video file,can only see

Implement Suggestion

Maybe the browser support download the video self we see,it can not avoid?

<!-- gh-comment-id:2996112709 --> @yuf19-2022 commented on GitHub (Jun 23, 2025): > ## Specific Demand > > i have some file,and everybody can see them,but i want it need to login for downloading the file.eg:.video,i donnot want they download the video file,can only see > > ## Implement Suggestion > > <!-- > If you have any suggestion for complete this feature, you can tell us. > --> Maybe the browser support download the video self we see,it can not avoid?
Author
Owner

@sigoden commented on GitHub (Jun 23, 2025):

We will not support this feature.

However, you can design your folder structure and authentication permissions to achieve this.

Put the files you want to protect in the /projected directory and the unprotected files in /public. Then, set authentication with -a @/public -a user:pass@/projected.

<!-- gh-comment-id:2996118326 --> @sigoden commented on GitHub (Jun 23, 2025): We will not support this feature. However, you can design your folder structure and authentication permissions to achieve this. Put the files you want to protect in the `/projected` directory and the unprotected files in `/public`. Then, set authentication with `-a @/public -a user:pass@/projected`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#352