1. bluehost knowledge base

IP Deny Manager

Summary

This tool will block anyone from a specified IP address. This will stop people from a particular IP address from being able to visit your site.



Finding out a visitor's IP Address

Using web statistics tools, one can find more information on their visitors. We suggest going to cPanel and clicking the Latest Visitors icon. This tool will show visitors' Host information; it could be an IP address or a domain name.

Note: Legacy accounts will feature a horizontal navigation bar at the top of the screen, while Bluerock account users will see a vertical navigation menu on the left-hand side of the screen. If you are still unsure what interface your account uses, please see Bluerock vs. Legacy to determine which step to follow.

How to block an IP address or Domain

Bluerock

  1. Log in to your Bluehost cPanel account.
  2. Click Advanced Tab on the left-side navigation menu.
  3. Scroll down and under Security, click on the IP Blocker icon.
  4. On the "Add an IP or Range," enter the IP address or domain name to block.
  5. Click the Add button.

Legacy

  1. Log in to your Bluehost cPanel account.
  2. Under Security, click on the IP Deny Manager icon.
  3. On the "Add an IP or Range," enter the IP address or domain name to block.
  4. Click the Add button.

How to unblock the IP address

Bluerock

  1. Log in to your Bluehost cPanel account.
  2. Click Advanced Tab on the left-side navigation menu.
  3. Under Security, click on the IP Blocker icon.
  4. Scroll down and locate the IP address or domain name you would like to unblock.
  5. Click the "Delete" option under Actions to remove it. 

Legacy

  1. Log in to your Bluehost cPanel account.
  2. Under Security, click on the IP Deny Manager icon.
  3. At the bottom, under "Current IP addresses being blocked," click the red "X" icon under the Remove column.

Deny All

You can also set an option for deny from all, which will deny everyone.

This must be done by coding your .htaccess file as follows:

deny from all
allow from 70.24.291.52
allow from 216.130.49.223 #My IP address

See the article on How to Edit Your .htaccess File for generic instructions that apply to all .htaccess changes.

Warning: It is possible to block access to yourself accidentally by using this method.

Be sure to allow access to your IP address. Otherwise, you will be blocked as well. You can find out your current IP address by visiting http://www.Bluehost.com/ip. If you accidentally block yourself, please contact Bluehost via live chat or telephone. You will need to confirm your identity ("verify your account") before we can unblock your IP.

For further assistance, you may contact our Chat Support or Phone Support via 888-401-4678. You may also refer to our Knowledge Base articles to help answer common questions and guide you through various setup, configuration, and troubleshooting steps.