Purgpow Posted June 8, 2005 Posted June 8, 2005 i would like to know if we can create an FTP folder on my site that is not in the public folder, you hidden from the web surfers, but can be accesed using a FTP program? Anything like that possible with Cpanel? Thanks Randy Quote
TCH-Rob Posted June 8, 2005 Posted June 8, 2005 I suppose that you could put the folder above the public_html folder but I believe anyone that would get access to that can also get access to all folders below it. I do not know if there is another way to do it. Quote
Purgpow Posted June 8, 2005 Author Posted June 8, 2005 i'm trying to use the Create an FTP folder on the Cpanel interface. On there it puts all the folders in the public html folder. Or is there a way to lock the ftp folder so you cant get in to it with out a password? i'm trying to keep public traffic out of a ftp folder that a classmate and i use for uploading and storing. I suppose that you could put the folder above the public_html folder but I believe anyone that would get access to that can also get access to all folders below it. I do not know if there is another way to do it. <{POST_SNAPBACK}> Quote
Purgpow Posted June 8, 2005 Author Posted June 8, 2005 i all so notice in Cpanel in the manage your ftp accounts there are a few ftp accounts that dont show up on the public drive folder but they are there in the manage account area of Cpanel. How do i work them? Thanks Randy Quote
cajunman4life Posted June 8, 2005 Posted June 8, 2005 Randy, to answer your question about creating a folder above the public_html directory (really the only option you have in cpanel), but password protecting it from others accessing it via http (web browser), you would need to create an .htaccess file. The easiest way to do this is to open cpanel for your domain, create the directory (using the file manager, for example we'll call it "priv_ftp"), and then from the main cpanel screen, clicking the option "Password Protect Directories". Select the directory you created (in this example, "priv_ftp"), and create a password for it. Correct me if I'm wrong anybody, but I don't believe that the ftp daemon reads .htaccess files, so logging in through ftp would be unaffected by this, however, if someone tries to access through a web browser (ie "http://www.my-domain.com/priv_ftp"), they will be faced with the username/password prompt (I almost forgot, with a password you have to create a user name). That should sufficiently answer your question. If this is clear as mud for you, I'll be happy to explain a little better, just pm me. Quote
TCH-Andy Posted June 8, 2005 Posted June 8, 2005 Correct cajunman4 life You create a directory, password protect it, and only http will read the password protection file (not FTP). Quote
TweezerMan Posted June 8, 2005 Posted June 8, 2005 You could also configure the web server to just deny access to that directory with the following .htaccess file: >Order Allow,Deny Deny from all People trying to browse that directory or any files in it would receive a "403 Forbidden" error page. Quote
abinidi Posted June 8, 2005 Posted June 8, 2005 Would it work if you created a subdomain for your classwork, then password protected the subdomain folder, and then created a separate FTP account for the subdomain? That would make the FTP password only work in the subdomain for your class work, but wouldn't give access to any other directory on your server. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.