How to block any IP address

How to block any IP address

You can block any IP address by add this line to your .htaccess file:

  1. order allow,deny
  2. deny from IP-ADDRESS
  3. allow from all

Replace "IP-ADDRESS" with the IP Address you want to block.


    • Related Articles

    • How to blacklist a IP address

      You can lock directory with a password by using cPanel "IP Blocker" option. 1. Log into your cPanel account. 2. In the "Security" section, click on "IP Blocker" Icon.  3. Under "Add an IP or Range" you should enter the IP Address you wish to block. ...
    • How to restrict Directory Access by IP address

      In order to secure your "admin area" from hackers, we recommended you to allow access only from your selected IP to your admin directory. You just need to create an .htaccess file in the directory where you want to restrict access by IP Address. For ...
    • How to prevent your server's IP from ending up on a blacklist

      To prevent your server's IP from being blacklisted, consider implementing the following best practices: 1. Keep Everything Updated: Ensure your software, and applications, is always up to date with the latest security patches. 2. Monitor for ...
    • How to change the DNS to Scriptcase Host

      To access a site by the address, example: scriptcase.host, this address must respond to a IP of the server that your account is hosted, for this purpose DNS servers are used. If you acquire or want to use a domain that you already own, you must ...
    • How to update your contact informations

      If you want to receive notifications about your service status or want to update your cPanel contact information, follow these steps. 1. Login to your cPanel account. 2. In the "Preferences" section, click on "Contact Information" icon.  3. Fill in a ...