Lezarwerks

Member
Oct 15, 2006
11
0
151
Hello!

I have a public FTP (not anonymous) on my site, and I'm running it as a hosting service for a specific genre of files. Is there any way I can restrict certain filetypes to be uploaded by its users? Is there a way to prevent execution of any kind of script within the directory the FTP account is set?

~/public_html/hosted is the location the FTP account is set to.

Thanks!

Sincerely,
Joshua Szanto

EDIT: Also, does there happen to be some way to monitor the activities of this specific account (ie. what files are uploaded, renamed, deleted, etc by which IP address)?
 

brianoz

Well-Known Member
Mar 13, 2004
1,146
7
168
Melbourne, Australia
cPanel Access Level
Root Administrator
Is there any way I can restrict certain filetypes to be uploaded by its users?
If you're using pure-ftp, you could run a pure-ftp upload script which disallowed unknown file extensions.

Is there a way to prevent execution of any kind of script within the directory the FTP account is set?
Yes, check out .htaccess and Options.
EDIT: Also, does there happen to be some way to monitor the activities of this specific account (ie. what files are uploaded, renamed, deleted, etc by which IP address)?
Yes, check out the ftp log file. Actually the log left in /var/log/messages is more detailed and easier to understand, but you'll have to use grep to select just the ftp log lines as it contains a whole world of other logging.