Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

支持隐藏文件夹与文件 #22

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

zanjie1999
Copy link
Contributor

写了一个功能,你看看有没有必要合进去,这样可以存放一些公开发布的文件以供下载,但不能被全部爬走
如果文件名或目录名以"."开头,比如".config",这个文件或目录就不会出现在列表中,但是可以直接以完整的文件名打开
当一个目录的文件名为"."开头,那将不允许浏览这个目录内的文件列表(返回Access denied),但是如果拥有完整的路径,文件依然可以访问,举例:
/media/.video/2023/1.mp4
可以浏览/media中的内容,但.video文件夹不会出现
/media/.video和/media/.video/2023的文件列表不可以被浏览(返回Access denied)
访问/media/.video/2023/1.mp4可以正常的下载文件

@n0099
Copy link

n0099 commented Feb 26, 2023

@SomeBottle
Copy link
Owner

SomeBottle commented Feb 27, 2023

看上去还不错,不过还得测试一下看看会不会和别的地方起冲突。

@n0099
Copy link

n0099 commented Feb 27, 2023

经典用404伪装403

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants