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 block extension on server?

Discussion in 'Data Protection' started by s1llyforyou, Oct 30, 2009.

  1. s1llyforyou

    s1llyforyou Well-Known Member

    Joined:
    Jan 24, 2008
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    hello

    how to block the following file extensions on server?
    .rar
    .zip
    .exe
    .avi
    .mp3
    .mpeg
    .mp4
    .wav
    .wma
    .flv
    .mkv
    .mov
    .mp4
    .mpg
    .rm
    .vob
    .wmv
    .3g2
    .3gp
    .asf
    .asx
    .torrent


    is it possible to automatically delete files that are uploaded with
    the above extension?
     
  2. s1llyforyou

    s1llyforyou Well-Known Member

    Joined:
    Jan 24, 2008
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    any update?
     
  3. eth00

    eth00 Well-Known Member
    PartnerNOC

    Joined:
    Mar 30, 2003
    Messages:
    723
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    NC
    cPanel Access Level:
    Root Administrator
    You could try to do this via your upload script.

    You could also disable them by an htaccess.

    You could run daily search/deletes.
     
Loading...

Share This Page