Introducing Our New Google Ads PPC Management $20/mo

All Email Issues Resolved – All Systems Fully Operational

Award Winning Hosting Since 2017

Free Backups
Free Site Transfers
cPanel Included
Malware Protection
24/7/365 Support
Litespeed Servers
AI WAF Protection
DDOS Protection
2023-silver-top-25-best-wordpress-hosting (1)

How to Block Any IP Address via an htaccess Rule

Table of Contents

Looking for cPanel Web Hosting?
$ 4.95 /mo when you renew

If you want to block an IP Address, you can add the below lines to your htaccess file.

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

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