Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14625 reviews 1734 hosting providers

Questions & Answers

Block uploads by file type using dotDefender in Linux

Jun 11, 2013 by GeekNew
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 votes
Jun 11, 2013 by SmartHost
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 .