Setting up a Non-Web Accessible Root Folder
When setting up your shared hosting account, you are required to enter the primary domain name to be used for your Web site. The primary domain name serves as one of several unique identifiers for your site, and it is also the primary address visitors use to access your site’s root content folder through a Web browser.
By default, this root folder is set as an application root and also set to allow anonymous access. These options cannot be changed directly. However, you can make your root folder non-web accessible using a false domain name. A domain name (real or false) is still required to act as one of your site's identifiers.
Note: This procedure applies to Deluxe and Premium hosting accounts only.
To Make Your Root Directory Non-Web Accessible
- Log in to your Account Manager.
- In the My Products section, select Hosting.
- Click Manage Account next to the hosting account you want to manage.
- Next to the hosting account you want to modify, click Manage Account.
- In the Settings section, select Domain Management.
- Under Primary Domain on Hosted Site, click Change Domain.
- Enter a false domain name for the hosted site. This domain name should not be a real domain used by you or anyone else. You can use your site's primary domain with a suffix to indicate it is not a working domain. For example, if your domain is www.coolexample.com, you can use www.coolexample-false.com.
NOTE: Changes to the primary domain affect the availability of your site. Until the remaining steps are completed, your site is not accessible. This change also necessitates the use of server IP address and not domain name to FTP.
- Click Continue.
- Click Submit. If the domain name is in use by another account, you will be asked to enter another domain name at this time.
You now need to add your real domain name as a non-primary domain for your account.
To Add Your Domain Name as a Non-Primary Domain for Your Account
- Log in to your Account Manager, and then click Hosting.
- Next to the hosting account you want to modify, click Manage Account.
- In the Settings section, select Domain Management.
- In the Domain field, select your domain from the list or enter the full domain name. This domain must be a registered domain you own; however, it need not be registered with us.
- In the Domain Hosting Path field, enter the path to your new Web root folder. This path must point to a subfolder; if it points to the root folder of your site, your root folder is accessible through a Web browser. To indicate its purpose, name the folder webroot or something similar.
- Click Add Domain.
After you update your account in this way, it is important to remember that the root folder of your site still allows access to anonymous users, but not through a Web browser. It is possible that your site may allow users to access files stored in these directories. If you would like folders to be more secure, create a new virtual directory off of the site root and restrict its access.