Home » Categories » Multiple Categories

Where do I put a file onto my webspace so that it can’t be downloaded?

If you want to stop people from downloading a file, you have two options:

Upload the file to the root

Upload the file to outside your public_html folder.  People will not be able to download the file, but you can call it by the absolute path it is located at.

To upload your file to root:

  1. Log into your site through FTP or the File Manager
  2. Go to the directory that 'public_html' sits in
  3. Upload your files there

To access your file:

In any other file that needs to access that file, use the absolute server path:

/home/sites/[DOMAIN]/[FILE]

Where [DOMAIN] is your domain name (such as your-domain.com) and [FILE] is the file name and extension (such as database.txt).

Create a Password-Protected Directory

Create a password-protected directory within your public_html folder.  You can set up a password-directory folder in your eXtend Control Panel.

To set up a password-protected directory:

  1. Log into your eXtend Control Panel
  2. Click 'Password Protection' under 'Web Tools'
  3. Enter in the directory you want to protect
  4. Enter in a username
  5. Enter in a password
  6. Click 'Add Protection'
  7. The directory will now be protected
1 (1)
Article Rating (1 Votes)
Rate this article
  • Icon PDFExport to PDF