1. Knowledge Base
  2. >
  3. Results
  4. >
  5. Article

Blocking users with specific IP addresses from accessing your site using the .htaccess editor

Block users from specific IP addresses or a range of IP addresses from accessing your site

  1. Log in to your account Hosting Summary
    Click for the Hosting Summary
  2. On the left pane, click .htaccess Editor.
    Click for the Hosting Summary
  3. Select a domain and directory to add or edit the .htaccess file in it.
    Select a domain and directory
  4. Click Manage Block IP Addresses.
    Manage Block IP Addresses
  5. Click the plus sign to Add IP Address/Range. 
    Click the plus sign to Add IP Address/Range
  6. Enter the IP address in the box. 
  7. Click the Block button. 

    Click the Block button

To block an IP range, enter the first IP address in the range followed by a forward slash and a Classless inter-domain routing (CIDR) suffix. E.g., 123.45.67.0/30
Be careful of performing range blocks because you may end up blocking people who are not the problem. 

Important: All subdirectories of the selected directory will inherit the settings for the directory unless you apply different settings to specific subdirectories.

Thanks for visiting! Since you landed on this page of our website, we wanted to let you know you visited one of our paid endorsers while researching your purchase. close