|
I have tons of extra disk space and bandwidth on my sever, and would like to allow some FTP space (which would be in a web-accessible directory) for my users. However, I'm afraid that doing so could pose a threat to security, since it would be fairly easy to write a script that would display the contents of a .php configuration file in the parent directory, which holds the passwords that my software uses to access the SQL tables.
I've been looking for a way to isolate a directory so that a script could not access any parent directories, or at least prevent the execution of scripts.
Since the server is shared, I do not have direct control over it; only CPanel and htaccess methods. So I've mainly been hoping there's a way to accomplish this with htaccess files.
I know I could use a web-based file management system, which would rename all files to a harmless extension, but I'd much rather stick with FTP.
|