|
||||
|
How can I make FTP accounts that are not Public?
I've been trying to figure this out for a while but can't find anything like this in the forum yet.
I want to create ftp accounts for users which are exclusive to them. In other words, I want to create an ftp account that makes their home directory a fairly protected space that no one else can see. The problem I'm having is that when you create an ftp account through cpanel, it does exactly what it says but places the new user's home directory in /home/accountname/public_html/ftpusername/ This means that the directory is wide open to the public! Anyone who browses to domainname.com/ftpusername/ will see all the files they've got in their FTP home dir. I've tried the simlink idea but the simlink also works for the web browser so even the the physical file is elsewhere, it's still browsable anonymously via http Anyone have any ideas on how to make an ftp account that is just an ftp account and not exposed to the public via www.domain.com/ftpuser/ ? Thanks. |
|
|||
|
Or you could pop a .htaccess file in the FTP user's home directory with a rule to restrict access to all files:
Code:
<Files ~ "*">
Deny from all
</Files>
Code:
<Files ~ "^header\.php$">
Deny from all
</Files>
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|