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!

Keeping a certain file off server

Discussion in 'General Discussion' started by linuxman, Jul 19, 2005.

  1. linuxman

    linuxman Well-Known Member

    Sep 20, 2003
    Likes Received:
    Trophy Points:
    I have been seeing an issue with the zclass.php and oscommerce. Is there any way to keep a particular files from being installed on the server? So if someone tried to upload it, it would just be deleted? Thanks.
  2. brianoz

    brianoz Well-Known Member

    Mar 13, 2004
    Likes Received:
    Trophy Points:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    Put a command like:
    find /home -name zclass.php | xargs rm -f

    in your crontab to run 3-4 times a day. Depending on how many accounts you have, the find should complete in a few minutes.

    There's no way to remove it immediately it's created, although you might be able to add something to watch the ftp log and remove the file immediately it's created via upload.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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