The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to restrict certain file formats from being uploaded?

Discussion in 'Security' started by pakistanihaider, Jan 21, 2011.

  1. pakistanihaider

    Joined:
    Dec 21, 2010
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Hi everyone
    i am little stuck in whm settings..
    i mean i can make account for clients and set packages..
    but i want to know..how to restrict my clients to not upload certain file formats..

    like i dont want my clients to upload .exe files on server.. where can i find that feature..or what should i do that my clients should not be able to upload certain file formats..

    Kind Regards
    Haider
     
  2. LinuxTechie

    LinuxTechie Well-Known Member

    Joined:
    Jan 22, 2011
    Messages:
    502
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello Haider,

    There are really no tools to restrict uploading of such files. One thing you can do is to make a script to notify when a .exe file gets uploaded.

    Mod security is a web based firewall and it won't help in restricting the uploads.
     
  3. pakistanihaider

    Joined:
    Dec 21, 2010
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    hmmm..so how do we can prevent clients from abusing the service..

    cuz it will be hard to daily check on all clients what they are doing on their server..

    And that notifying script will be great too..is there any script out there like that??
     
  4. LinuxTechie

    LinuxTechie Well-Known Member

    Joined:
    Jan 22, 2011
    Messages:
    502
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello Haider,

    Yes, you are right. It is difficult to scan the server daily. But you can perform a clamscan/maldetect weekly to find the vulnerable files.

    If needed a custom script can be made to find the particular pattern uploads.
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,456
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
Loading...

Share This Page