aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/blueimp/jquery-file-upload/server/php/files/.htaccess
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-11-05 09:55:23 +0100
committerMario Vavti <mario@mariovavti.com>2018-11-05 09:55:23 +0100
commit4830a1559d5ad9f59d809bf3d693592d3f7c8ab2 (patch)
treedb87b400af1f3de1ca01bccef58b0bf4e55b1241 /vendor/blueimp/jquery-file-upload/server/php/files/.htaccess
parentc8dd516d6c743d0371dc2ccb476eb70bcc17fa0a (diff)
parent92ea3ef72036c39601b69565f3e03fa44ad9aef7 (diff)
downloadvolse-hubzilla-4830a1559d5ad9f59d809bf3d693592d3f7c8ab2.tar.gz
volse-hubzilla-4830a1559d5ad9f59d809bf3d693592d3f7c8ab2.tar.bz2
volse-hubzilla-4830a1559d5ad9f59d809bf3d693592d3f7c8ab2.zip
Merge branch 'dev'
Diffstat (limited to 'vendor/blueimp/jquery-file-upload/server/php/files/.htaccess')
-rw-r--r--vendor/blueimp/jquery-file-upload/server/php/files/.htaccess26
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/blueimp/jquery-file-upload/server/php/files/.htaccess b/vendor/blueimp/jquery-file-upload/server/php/files/.htaccess
new file mode 100644
index 000000000..6f454afb9
--- /dev/null
+++ b/vendor/blueimp/jquery-file-upload/server/php/files/.htaccess
@@ -0,0 +1,26 @@
+# To enable the Headers module, execute the following command and reload Apache:
+# sudo a2enmod headers
+
+# The following directives prevent the execution of script files
+# in the context of the website.
+# They also force the content-type application/octet-stream and
+# force browsers to display a download dialog for non-image files.
+SetHandler default-handler
+ForceType application/octet-stream
+Header set Content-Disposition attachment
+
+# The following unsets the forced type and Content-Disposition headers
+# for known image files:
+<FilesMatch "(?i)\.(gif|jpe?g|png)$">
+ ForceType none
+ Header unset Content-Disposition
+</FilesMatch>
+
+# The following directive prevents browsers from MIME-sniffing the content-type.
+# This is an important complement to the ForceType directive above:
+Header set X-Content-Type-Options nosniff
+
+# Uncomment the following lines to prevent unauthorized download of files:
+#AuthName "Authorization required"
+#AuthType Basic
+#require valid-user