How Nexcess clients on physical (non-Cloud) servers can allow or block specific hostnames and IP addresses while managing permissions for a site or domain directory.
ATTENTION: If you are inexperienced with .htaccess files, we highly recommend that you contact our support team for assistance. If handled incorrectly, an .htaccess file can cause major problems for your website.
What you need
A backup of your .htaccess file
An enabled global or directory-specific .htaccess file. See How to create .htaccess files for details
A Nexcess account on a physical (non-cloud) server. If you are a Nexcess Cloud client, instead contact our 24/7 support team for assistance.
Method
The hostnames and IP addresses you intend to add to the Trusted or Blocked fields will apply to the current directory and all of its subdirectories.
- Log in to your SiteWorx account.
- If you do not know your password, click Forgot your password on the login page.
- If you do not know the web address for your SiteWorx login page, either refer to your Welcome Email or contact our 24/7 support team for assistance.
- From the main menu, click Hosting Features > Htaccess.
- Locate your desired directory, then click [Edit].
- Locate your desired directory, then click Access Control.Reference the below image for steps 5–8.
- From the Access Order panel, select the order in which trusted or blocked"lists should be considered:
- Deny first, then allow: Blocked Hosts list will be evaluated first.
Allow first, then deny: Trusted Hosts list will be evaluated first.
Type the domain names or IP addresses in the TrustedHosts field. The domain names and IP addresses listed will be allowed access to this directory and all of its sub-directories.
Type the domain names or IP addresses in the Blocked Hosts field. The domain names and IP addresses listed will be denied access to this directory and all of its sub-directories.
Click Update. A message will display at the top of the page indicating that access control has been enabled for the directory that you selected; for example, Access Control updated: global.