Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forbid access to files #149

Closed
alpharde opened this issue May 24, 2024 · 2 comments
Closed

Forbid access to files #149

alpharde opened this issue May 24, 2024 · 2 comments
Assignees
Labels
feature request Enhancement or feature request

Comments

@alpharde
Copy link

alpharde commented May 24, 2024

Requesting a option to disallow access to certain files, returning 404 or 403 and to hide such files from the directory index.

@xyproto xyproto self-assigned this May 24, 2024
@xyproto xyproto added the feature request Enhancement or feature request label May 24, 2024
@xyproto
Copy link
Owner

xyproto commented May 24, 2024

Thanks for reporting! What would be the ideal way to configure something like this? Read .ignore/_ignore files if they are present, and then don't list the files covered by the globs/patterns in such files?

@xyproto
Copy link
Owner

xyproto commented May 26, 2024

Added support for .ignore files on non-Windows platforms, and ignore.txt on Windows.

@xyproto xyproto closed this as completed May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Enhancement or feature request
Projects
None yet
Development

No branches or pull requests

2 participants