Block uploads by file type using dotDefender in Linux

asked Jun 11, 2013 in General by GeekNew (720 points)
Hi all
I am using dotDefender dotDefender for Linux v 3.85, and I want to prevent PHP and CFM files from being uploaded to my server in any web form. I want to simply block PHP files as well as CFM files based on their file extension (.php and .cfm). How can I do this? Any help is highly appreciated.
Thanks in advanced

1 Answer

0 like 0 dislike
answered Jun 11, 2013 by SmartHost (9,060 points)
1.Open your dotDefender interface and then browse to the Security Profile of your domain.
2.Go to Settings and open the ‘Whitelist’ category.
3.Add a new rule using the below parameters:
Filter: SecFilterSelective
Keyword: ^.*\.(php|cfm)$
Action: Deny
4.When you are done with the parameters press the Add button.
5.Return to your main page and click the Refresh setting button for .