Block uploads by file type using dotDefender in Linux

In this example we will be blocking both PHP and CFM file types based on the file extension. This will prevent these file types from being uploaded to the server in a web form. This feature was added in dotDefender for Linux version 3.85.

  1. Open the dotDefender interface and browse to the Security Profile of the domain.
  2. Select Settings.
  3. Open the Whitelist category.
  4. Add a new rule with the following parameters:
    • Filter: SecFilterSelective
    • Location: FILES_NAMES
    • Keyword: ^.*\.(php|cfm)$
    • Action: Deny
  5. Press the Add button.
  6. Return to the main page and press the Refresh setting button for changes to take effect.