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:
- Log into your site through FTP or the File Manager
- Go to the directory that 'public_html' sits in
- 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:
- Log into your eXtend Control Panel
- Click 'Password Protection' under 'Web Tools'
- Enter in the directory you want to protect
- Enter in a username
- Enter in a password
- Click 'Add Protection'
- The directory will now be protected