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 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:
    56
    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:
    56
    any update?
     
  3. eth00

    eth00 Well-Known Member
    PartnerNOC

    Joined:
    Mar 30, 2003
    Messages:
    723
    Likes Received:
    1
    Trophy Points:
    168
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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