Skip to content

Commit 736dc6f

Browse files
M0rgan01Matthieu Rolland
authored and
Matthieu Rolland
committed
htcaccess now deny all files
1 parent a248898 commit 736dc6f

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

upload/.htaccess

+7-16
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
1-
<IfModule mod_headers.c>
2-
<FilesMatch "\.pdf$">
3-
Header set Content-Disposition "Attachment"
4-
Header set X-Content-Type-Options "nosniff"
5-
</FilesMatch>
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
65
</IfModule>
76

8-
<IfModule !mod_rewrite.c>
9-
# Apache 2.2
10-
<IfModule !mod_authz_core.c>
11-
Order deny,allow
12-
Deny from all
13-
</IfModule>
14-
15-
# Apache 2.4
16-
<IfModule mod_authz_core.c>
17-
Require all denied
18-
</IfModule>
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all denied
1910
</IfModule>

0 commit comments

Comments
 (0)