HostGator Web Hosting Help

IP Deny Manager Tool

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 the 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 the Host information of visitors; it could be an IP address or a domain name.

How to block an IP address or Domain

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

How to unblock the IP address

  1. Log in to your HostGator 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 for your IP address. Otherwise, you will be blocked as well. You can find out your current IP address by visiting http://www.HostGator.sg/ip. If you accidentally block yourself, please contact HostGator via live chat or telephone. You will need to confirm your identity ("verify your account") before we can unblock your IP.



Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

This article will give a basic overview of the File Manager and explain how to access it.
Getting Started Article 475,682 views tags: cpanel filemanager

This article will explain how to utilize GZip through the file manager.
Knowledgebase Article 232,172 views tags: archive compress compression decompress file gzip management zip

What is the Process Manager? How do I use the Process Manager? Why can I get to my cPanel but homepage does not display?
Knowledgebase Article 229,950 views tags: concurrent connections displaying frozen manager manger process site twenty website

Related Help Content

This article will walk you through copying and moving files using the File Manager.
Knowledgebase Article 269,581 views tags: cpanel filemanager

If you need to transfer or restore a cPanel account for your VPS or Dedicated server, there is a tool within the WHM panel to perform these tasks. This article is about transferring or restoring from another server or restoring after a re-image.
Knowledgebase Article 89,242 views tags: backup cpanel dedicated hosting restore server transfer vps

This article will walk you through extracting compressed files using the File Manager.
Knowledgebase Article 246,948 views tags: cpanel filemanager

This article will walk you through uploading files using the File Manager
Knowledgebase Article 381,323 views tags: cpanel file upload

This article will walk you through creating, removing, and editing files with the file manager.
Knowledgebase Article 289,125 views tags: cpanel filemanager

This article will explain how to access and use the Web Disk and cPanel as well as explain variations for different operating systems.
Knowledgebase Article 197,538 views tags: cpanel webdav webdisk

This article will walk you through navigating the File Manager.
Knowledgebase Article 192,382 views tags: cpanel filemanager

How do I view Thumbnails of images in a directory? How do I scale images? How do I convert an image to a jpg, gif, bmp, or png?
Knowledgebase Article 257,579 views tags: bmp gif images jpg manager png scale thumbnails