South Africa flag South African businesses: UK-quality hosting billed in Rand (ZAR) — your data stays in the UK, your invoice stays local. United Kingdom flag
EDZNET
  • Hosting
  • API
  • Domains
  • SSL
  • Bespoke Dev
  • Bespoke WP
  • QuickSite
  • Blog
  • Support
  • Login
  • 0
  • Get Hosting
  1. Home
  2. Knowledgebase
  3. SiteWorx (Control Panel)
  4. Security
  5. How to Ban Any IP Address via htaccess

  Categories

Backup/Restore
4
Cloudflare (cPanel)
9
CloudLinux (cPanel)
10
cPanel - Control Panel
25
Databases
11
DNS - Nameservers
6
Domain Management
10
Email
17
FTP
9
Mail Filters & SPAM
8
Mobile
11
Others
3
PayPal
7
Security
10
Security
2
SSL
5
WordPress
17

  Categories

  Tag Cloud

WAF Vulnerabilities Malware Scanner IP Reputation FIREWALL bitninja GreyList BalckList WhiteList cPanel WordPress WordPress Toolkit

  Support

My Support Tickets
Announcements
Knowledgebase
Downloads
Network Status
Open Ticket

How to Ban Any IP Address via htaccess Print

  • 0

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.


Was this answer helpful?

Related Articles

How to Disable Directory Browsing Using the htaccess Rule For security purposes, you should disable directory browsing on your website so no one can see... How to Protect Your htaccess File You can prevent unauthorized access to your htaccess file by adding this rule to the file: #... How to Restrict Access to Directories by IP Address - SiteWorx To secure your admin area from hackers, you should only allow access to your admin directory from...
« Back

  Tag Cloud

WAF Vulnerabilities Malware Scanner IP Reputation FIREWALL bitninja GreyList BalckList WhiteList cPanel WordPress WordPress Toolkit

  Support

My Support Tickets
Announcements
Knowledgebase
Downloads
Network Status
Open Ticket
EDZNET

Premium managed UK hosting for businesses that can’t afford downtime. ISO/IEC 27001 data centres in London & Coventry. Serving UK and South African clients since 2019.

London Coventry

Services

  • Website Hosting
  • SSL Certificates
  • Domain Registration
  • Bespoke Development
  • Bespoke WordPress
  • QuickSite

Resources

  • Blog
  • Knowledgebase
  • API Guide
  • Network Status
  • Announcements
  • Affiliates

Company

  • Contact Us
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Acceptable Use
  • QuickSite Terms

UK Infrastructure

  • ISO/IEC 27001 facilities
  • Tier 3 data centres
  • 99.9% uptime SLA
  • UK GDPR & DPA 2018

Your IP: 216.73.216.252 US

All managed & shared hosting secured by BitNinja Server Security

Copyright © 2026 EDZNET. All Rights Reserved. England, Wales, Isle of Man & South Africa.

Made with and

EDZNET SUPPORT
Typically replies within minutes
👋 Hi there! Need help? Check our Quick Help guides first — or chat with us on WhatsApp. We're real developers, not bots.
Quick Help — Find instant answers Start Chat on WhatsApp

Loading...
Loading...

Choose Currency

R ZAR
£ GBP

Generate Password

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