]> jfr.im git - uguu.git/commitdiff
added mime type blocks
authorEric Johansson (neku) <redacted>
Sun, 15 Dec 2019 00:07:45 +0000 (01:07 +0100)
committerGitHub <redacted>
Sun, 15 Dec 2019 00:07:45 +0000 (01:07 +0100)
includes/config.template.php

index 6efcdc656551df213f3c84dc7b4946c288b366b7..aa8fb3da2600e4ac4a750b5d0403b7cef951015e 100644 (file)
@@ -21,5 +21,7 @@ define("CONFIG_EXTENSION_BLOCKING_MODE", "BLACKLIST");
 define("CONFIG_BLOCKED_EXTENSIONS", serialize(array("exe", "scr", "rar", "zip", "com", "vbs", "bat", "cmd", "html", "htm", "msi", "php", "php5")));
 //This is the list of allowed extensions in WHITELIST mode, you can remove extensions or add to this list as you like
 define("CONFIG_ALLOWED_EXTENSIONS", serialize(array("txt", "pdf")));
+//List of blocked MIME types, for when simple ext checks doesnt cut it
+define ("CONFIG_BLOCKED_MIME", serialize(array("application/octet-stream", "application/msword", "text/html", "application/x-dosexec", "application/zip", "application/java", "application/java-archive")));
 //https://wiki.gentoo.org/wiki/Handbook to set this string correctly, or just ignore it
 define("VERYLO_NG_STRING_THATDOESNTREALLYD_O_ANYTHING", "ok");