From: nokonoko Date: Wed, 18 Nov 2020 12:46:32 +0000 (+0100) Subject: Update README.md X-Git-Tag: v1.0~53 X-Git-Url: https://jfr.im/git/uguu.git/commitdiff_plain/1f71d46c8283543194a016458c20b4fc73ec3561?hp=c54fa84e44339a5b92e7d7f5c84188f050de12bb Update README.md --- diff --git a/README.md b/README.md index 3697f4e..f93274b 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,16 @@ Then add them to your crontab: These scripts check if DB entries and files are older then 24 hours and if they are deletes them. +## MIME/EXT Blocking + +Blocking certain filetypes from being uploaded can be changed by editing the following settings in `static/php/includes/settings.inc.php`: +```php +define('CONFIG_BLOCKED_EXTENSIONS', serialize(['exe', 'scr', 'com', 'vbs', 'bat', 'cmd', 'htm', 'html', 'jar', 'msi', 'apk', 'phtml'])); +define('CONFIG_BLOCKED_MIME', serialize(['application/msword', 'text/html', 'application/x-dosexec', 'application/java', 'application/java-archive', 'application/x-executable', 'application/x-mach-binary'])); +``` + +By default the most common malicious filetypes are blocked. + ## Using SQLite as DB engine We need to create the SQLite database before it may be used by uguu.