How to prevent the uploading or renaming of a specific script via FTP

i3903

Well-Known Member
Apr 27, 2003
62
0
156
I need to block "scriptname.php" from being uploaded or renamed on the server via FTP for security. Does anyone know how to do this in proftp?

Cheers

cPanel.net Support Ticket Number: NA
 

ciphervendor

Well-Known Member
Aug 26, 2002
1,052
0
166
Is this just for one account or for all accounts?

cPanel.net Support Ticket Number:
 

i3903

Well-Known Member
Apr 27, 2003
62
0
156
Server wide for a temp period of time

cPanel.net Support Ticket Number:
 

ciphervendor

Well-Known Member
Aug 26, 2002
1,052
0
166
I don't think that you can do that with pro or pure. However you can create a cron to run every 5 minutes to remove files with x name.
Code:
find /home -type f -name filename.php -exec rm -f {} \;
cPanel.net Support Ticket Number:
 

i3903

Well-Known Member
Apr 27, 2003
62
0
156
I've done that at the moment, but every 24hrs, to search the whole HD, it was using a load of about 3+ so its set to run at the nightly cron job.

Cheers though

cPanel.net Support Ticket Number: