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 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:
    1
    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,475
    Likes Received:
    20
    Trophy Points:
    38
    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.
     
  3. projectandrew

    projectandrew Well-Known Member

    Joined:
    Aug 27, 2003
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    16
    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