Skip to content

Instantly share code, notes, and snippets.

@devuri
Created October 14, 2023 21:29
Show Gist options
  • Save devuri/2e0cb502f7e6543b084fa2afb4ad5e7f to your computer and use it in GitHub Desktop.
Save devuri/2e0cb502f7e6543b084fa2afb4ad5e7f to your computer and use it in GitHub Desktop.
Apache configuration rules to control access to the .user.ini
<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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment