# This file applies Content-Security-Policy (CSP) HTTP headers # to directories containing (user uploaded) resources like # /fileadmin/ or /uploads/ <IfModule mod_headers.c> # matching requested *.pdf files only (strict rules block Safari showing PDF documents) <FilesMatch "\.pdf$"> Header set Content-Security-Policy "default-src 'self' 'unsafe-inline'; script-src 'none'; object-src 'self'; plugin-types application/pdf;" </FilesMatch> # matching requested *.svg files only (allows using inline styles when serving SVG files) <FilesMatch "\.svg"> Header set Content-Security-Policy "default-src 'self'; script-src 'none'; style-src 'unsafe-inline'; object-src 'none';" </FilesMatch> # matching anything else, using negative lookbehind pattern <FilesMatch "(?<!\.(?:pdf|svg))$"> Header set Content-Security-Policy "default-src 'self'; script-src 'none'; style-src 'none'; object-src 'none';" </FilesMatch> # ================================================================= # Variations to send CSP header only when it has not be set before. # Adjust all `Header set` instructions above # Header set Content-Security-Policy "<directives>" # with substitutes shown below # # ----------------------------------------------------------------- # a) for Apache 2.4 (having `setifempty`) # ----------------------------------------------------------------- # Header setifempty Content-Security-Policy "<directives>" # # ----------------------------------------------------------------- # b) for Apache 2.2 (using fallbacks) # ----------------------------------------------------------------- # Header append Content-Security-Policy "" # Header edit Content-Security-Policy "^$" "<directives>" # # ================================================================= </IfModule>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
images | Folder | 0755 |
|
|
php53 | Folder | 0755 |
|
|
php56 | Folder | 0755 |
|
|
php71 | Folder | 0755 |
|
|
php81 | Folder | 0755 |
|
|
php82 | Folder | 0755 |
|
|
.htaccess | File | 312 B | 0644 |
|
Pbkdf2Salt.php | File | 781 B | 0644 |
|
_.htaccess | File | 14.66 KB | 0644 |
|
_upgrade.php | File | 4.08 KB | 0644 |
|
_upgrade.xml | File | 452 B | 0644 |
|
edit.php | File | 6.73 KB | 0644 |
|
edit.xml | File | 433 B | 0644 |
|
file_.htaccess | File | 348 B | 0644 |
|
file_index.html | File | 116 B | 0644 |
|
fileadmin.htaccess | File | 1.88 KB | 0644 |
|
fileindex.php | File | 100 B | 0644 |
|
import.php | File | 5.78 KB | 0644 |
|
info.xml | File | 3.79 KB | 0644 |
|
install.js | File | 924 B | 0644 |
|
install.php | File | 19.01 KB | 0644 |
|
install.xml | File | 733 B | 0644 |
|
md5 | File | 1.51 KB | 0644 |
|
notes.txt | File | 1.39 KB | 0644 |
|
settings.php | File | 3.63 KB | 0644 |
|
update_pass.php | File | 767 B | 0644 |
|