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

Protect .php.ini file #12

Open
camlafit opened this issue Dec 13, 2021 · 1 comment
Open

Protect .php.ini file #12

camlafit opened this issue Dec 13, 2021 · 1 comment

Comments

@camlafit
Copy link
Contributor

camlafit commented Dec 13, 2021

Default vhost allow to read .php.in file

Could be interessting to prevent this and add some rules on apache as

<Files ".user.ini">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>

Took from https://www.wordfence.com/help/scan/scan-results/?utm_source=plugin&utm_medium=pluginUI&utm_campaign=docsIcon#public-logs

@camlafit camlafit changed the title Protect .user.ini file Protect .php.ini file Jan 6, 2022
@camlafit
Copy link
Contributor Author

camlafit commented Jan 6, 2022

updated to .php.ini as as .user.ini is not a good idea cf #10

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

No branches or pull requests

1 participant