Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to restrict file extension upload?

Discussion in 'General Discussion' started by netkelly, Jan 20, 2005.

  1. netkelly

    netkelly Registered

    Joined:
    Jan 20, 2005
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    151
    We need to restrict our users upload wmv, asf,mp3... but we don't know how. Are there any body help us? :confused:

    Thanks for all your advice !
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    22
    Trophy Points:
    463
    Location:
    Go on, have a guess
    While it might be possible to restrict certain files with a given extension within the FTP server, it is simple and straightforward to get around (with a perl script). So the realistic answer is, you can't.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. projectandrew

    projectandrew Well-Known Member

    Joined:
    Aug 27, 2003
    Messages:
    184
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    United Kingdom
    Your best bet it to create and regulary run a script (via cron) which would find and remove files with certain extensions etc.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice