Leap Web Hosting
  • 0 Shopping Cart
  • Home
  • Affiliates
  • Contact Us
  • Unblock IP
  • More
  • Account
    • Login
    • Forgot Password?
  1. Portal Home
  2. Knowledgebase
  3. Technical Questions
  4. Security
  5. How to ban any IP address via .htaccess?

  Categories

Cpanel
52
Domains
24
General Questions
15
Mobile
11
Softaculous
67
Technical Questions
14

  Categories

  Support

My Support Tickets
Knowledgebase
Open Ticket

How to ban any IP address via .htaccess? Print

  • 0

If someone is abusing your website and you want to block abuser's IP address from accessing your website, you can add this line to your .htaccess file.

order allow,deny
deny from IP-ADDRESS
allow from all

Replace "IP-ADDRESS" with the IP address you want to block, for example 192.168.0.1


Was this answer helpful?

Related Articles

How to protect a folder with username and password in cPanel? You can lock a directory with a password by using the cPanel "Password Protected Directories"... How to ban any IP address via cPanel? If someone is abusing your website and you want to block abuser's IP address from accessing your... How to protect your website's images from an external website? External websites can use <img/> tag to display an image from your website on other... How to disable directory browsing using .htaccess? For security reasons it is recommended to disable directory browsing of your website so no one... How to protect your .htaccess file? For security reasons it is recommended to protect your .htaccess file from unauthorized...
« Back

  Support

My Support Tickets
Knowledgebase
Open Ticket
  • Contact Us
  • Terms of Service

Copyright © 2026 Leap Web Hosting. All Rights Reserved.


Loading...
Loading...

Generate Password

Please enter a number between 8 and 64 for the password length