author | ymh <ymh.work@gmail.com> |
Mon, 14 Oct 2019 18:30:03 +0200 | |
changeset 10 | 372f2766ea20 |
parent 7 | cf61fcea0001 |
permissions | -rw-r--r-- |
5 | 1 |
# Only allow direct access to specific Web-available files. |
2 |
||
3 |
# Apache 2.2 |
|
4 |
<IfModule !mod_authz_core.c> |
|
5 |
Order Deny,Allow |
|
6 |
Deny from all |
|
7 |
</IfModule> |
|
8 |
||
9 |
# Apache 2.4 |
|
10 |
<IfModule mod_authz_core.c> |
|
11 |
Require all denied |
|
12 |
</IfModule> |
|
13 |
||
14 |
# Akismet CSS and JS |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
15 |
<FilesMatch "^(form\.js|akismet\.js|akismet\.css)$"> |
5 | 16 |
<IfModule !mod_authz_core.c> |
17 |
Allow from all |
|
18 |
</IfModule> |
|
19 |
|
|
20 |
<IfModule mod_authz_core.c> |
|
21 |
Require all granted |
|
22 |
</IfModule> |
|
23 |
</FilesMatch> |
|
24 |
||
25 |
# Akismet images |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
26 |
<FilesMatch "^logo-full-2x\.png$"> |
5 | 27 |
<IfModule !mod_authz_core.c> |
28 |
Allow from all |
|
29 |
</IfModule> |
|
30 |
|
|
31 |
<IfModule mod_authz_core.c> |
|
32 |
Require all granted |
|
33 |
</IfModule> |
|
34 |
</FilesMatch> |