Contact
Site: US UK AU |

How to allow or block hostnames and IP addresses

How to allow or block hostnames and IP addresses

Overview
This article explains how to use your SiteWorx account to allow or block specific hostnames and IP addresses while managing permissions for your 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.

Before proceeding

The hostnames and IP addresses that you add to the Trusted or Blocked fields will apply to the current directory and all of its subdirectories.
 
You must already have an enabled global or directory-specific .htaccess file. Refer the to How to create .htaccess files as necessary.

Procedure

  1. Log in to your SiteWorx account.
  2. On the main menu, click Hosting Features > Htaccess.
  3. Click Access Control to indicate the directory for which you want to set access control.
  4. Under Access Order, select the order in which trusted or blocked" lists should be considered:
     a. Deny first, then allow: Blocked Hosts list will be evaluated first.
     b.  Allow first, then deny: Trusted Hosts list will be evaluated first.
  5. Type the domain names or IP addresses in the Trusted Hosts field. The domain names and IP addresses listed will be allowed access to this directory and all of its sub-directories.
  6. 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.
  7. 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.

For 24-hour assistance any day of the year, contact our Support Team by email or through the Client Portal.

Article Rating (2 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
 
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
How to create and manage MIME types
Added on Tue, Aug 6, 2013
Creating and managing custom error pages
Added on Tue, Jul 30, 2013
How to create and manage Apache handlers
Added on Tue, Aug 6, 2013
How to prevent bandwidth theft or Hotlinking
Added on Mon, Aug 5, 2013
How to block IPs with .htaccess
Added on Tue, Aug 6, 2013
How to create URL redirect rules
Added on Tue, Jul 30, 2013
How to enable and disable .htaccess files with SiteWorx
Added on Mon, Aug 5, 2013
How to create .htaccess files
Added on Fri, Aug 2, 2013
What is .htpasswd?
Added on Mon, Nov 10, 2014
.htaccess rewrite commands
Added on Tue, Mar 27, 2018