-
Notifications
You must be signed in to change notification settings - Fork 83
/
.htaccess
54 lines (44 loc) · 1.18 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Restricts direct access to files that are not intended to be publicly available
# Apache 2.2
<IfModule !mod_authz_core.c>
Order Deny,Allow
Deny from all
</IfModule>
# Apache 2.4
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
# Allows direct access to specific files only
# Cloudflare JS and CSS
<FilesMatch "^.+(js|css)$">
# Apache 2.2
<IfModule !mod_authz_core.c>
Allow from all
</IfModule>
# Apache 2.4
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
</FilesMatch>
# Cloudflare images
<FilesMatch "^.+(png|svg|gif|jpg|webp)$">
# Apache 2.2
<IfModule !mod_authz_core.c>
Allow from all
</IfModule>
# Apache 2.4
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
</FilesMatch>
# Cloudflare fonts
<FilesMatch "^.+(eot|ttf||otf|woff|woff2)$">
# Apache 2.2
<IfModule !mod_authz_core.c>
Allow from all
</IfModule>
# Apache 2.4
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
</FilesMatch>