Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Sep 2003
    Posts
    84

    Default Keeping a certain file off server

    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. #2
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,117
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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.

Similar Threads & Tags
Similar threads

  1. House keeping functions
    By ManuelT in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 03-07-2011, 08:31 AM
  2. Keeping read emails on server in cPanel?
    By Myler in forum E-mail Discussions
    Replies: 1
    Last Post: 10-06-2010, 08:03 AM
  3. server complains about keeping up with the statistics processing schedule
    By dev.null in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-24-2007, 08:30 AM
  4. General rules for keeping a server secure
    By jatos in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 03-25-2006, 01:53 PM
  5. stats not keeping up
    By JohnodACD in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-06-2006, 10:56 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube