How do I deny IP address access?

Do you want to stop someone from visiting your website? This tool will block anyone from a specified IP address.

How to find out a visitor's IP address. Use the web statistics tools to find more information on your visitors. We suggest you go to cPanel and click the Latest Visitors icon. Look for the Host information; it could be an IP or a domain name.

How to block the IP address.

  1. Login to cPanel and click IP Deny Manager.
  2. Under "Add an IP to deny", please enter IP address or domain name you wish to block.
  3. Click the Add button.


How to unblock the IP address.

  1. Login to cPanel and click IP Deny Manager.
  2. At the bottom, under "Current IP addresses being blocked", click Remove.

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 house

Was this answer helpful?

 Print this Article

Also Read

How to create blacklists

You may use Mailscanner to stop (blacklist) someone from emailing you. Login to cPanel and...

How to generate/download a full backup

A full backup is a backup of all of your files, e-mail, databases, etc. To run a full backup, you...

How To Change Your cPanel Style

This tutorial will teach how to change your cPanel style. cPanel comes in a variety of styles and...

Apache modules that are on all of our shared servers

core.c  mod_authn_file.c  mod_authn_dbm.c  mod_authn_dbd.c ...

What is hot linking? How do I enable and disable hotlink protection?

Hot link protection prevents other websites from directly linking to files and...