Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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.

Posted

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

Posted

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.

Posted

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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...