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

14120 reviews 1680 hosting providers

Questions & Answers

Block uploads by file type in linux

May 13, 2012 by citrix345
Hello all
I am using linux, and I want to block uploads based on specific file types (CFM and PHP file types on the file extension). Can anyone please help me find a way to do this?
Thanks in advanced

1 Answer

0 votes
May 13, 2012 by WebProX
Hello citrix

You can block uploads by file type using dotDefender in Linux
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:
oFilter: SecFilterSelective
oLocation: FILES_NAMES
oKeyword: ^.*\.(php|cfm)$
oAction: Deny
5.Press the Add button.
6.Return to the main page and press the Refresh setting button for changes to take effect.