File-Firewall adding mimetypes

I want to to block following filetypes: .mp3, .mp4, .exe, .com, .js, .vbs, .jar and .ps1.
My Problem is, that .vbs, .jar, .ps1 Files dont get blocked and I’am still able to upload such filetypes. These filetypes aren’t listed in the Owncloud mimetype-list, so i need to create an own list as shown here: https://doc.owncloud.com/server/admin_manual/configuration/mimetypes/#mimetype-mapping

what i did:

  1. created a file owncloud/config/mimetypealiases.json
  2. added following rows to this file:
    {
    “jar”:[“application/java-archive”],
    “vbs”:[“application/vbs”],
    “com”:[“application/com”]
    }
  3. $ chwon apache: mimetypealiases.json
  4. $ sudo -u apache php occ maintenance:mimetype:update-js (result = mimetypelist.js is updated)
  5. added a new group (file firewall) with this rule: file mimetype upload is application/java-archive (the same for application/vbs and application/com)

Expected behaviour

.jar files will get blocked

Actual behaviour

i can still upload .jar files

Server configuration

Operating system:
Cent OS
Web server:
apache 2.4
Database:
Mariadb 10.4
PHP version:
PHP 7.2
ownCloud version: (see ownCloud admin page)
10.3.0.4

File-firewall is an enterprise app, please open a support ticket with ownCloud support team by sending an email to support@owncloud.com

1 Like