2020-05-25 10:06:47 +02:00
|
|
|
# disabling file access
|
|
|
|
|
|
|
|
Options -Indexes
|
|
|
|
|
|
|
|
<FilesMatch ".*">
|
|
|
|
<IfModule mod_authz_core.c>
|
|
|
|
# Apache 2.4
|
|
|
|
Require all denied
|
|
|
|
</IfModule>
|
|
|
|
<IfModule !mod_authz_core.c>
|
|
|
|
# Apache 2.2
|
|
|
|
order deny,allow
|
|
|
|
deny from all
|
|
|
|
</IfModule>
|
|
|
|
</FilesMatch>
|
|
|
|
|
|
|
|
<FilesMatch "\.(png|jpe?g|gif)$">
|
|
|
|
<IfModule mod_authz_core.c>
|
|
|
|
# Apache 2.4
|
|
|
|
Require all granted
|
|
|
|
</IfModule>
|
|
|
|
<IfModule !mod_authz_core.c>
|
|
|
|
# Apache 2.2
|
|
|
|
order allow,deny
|
|
|
|
allow from all
|
|
|
|
</IfModule>
|
2017-12-20 10:49:01 +01:00
|
|
|
</FilesMatch>
|