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

prevent direct access to index.php #712

Closed
wants to merge 1 commit into from

Conversation

yassinefikri
Copy link

No description provided.

Copy link
Contributor

@bkosun bkosun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yassinefikri, we could use the hide parameter of the file_server directive to hide system files.

https://caddyserver.com/docs/caddyfile/directives/file_server#hide

See #714

It seems to be a simpler solution. In addition, it has less impact on performance.

WDYT?

@maxhelias
Copy link
Collaborator

maxhelias commented Jan 15, 2025

Fixed in #714, thanks @yassinefikri for pointing out this issue

@maxhelias maxhelias closed this Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants