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. Security
  4. How to Protect the htaccess File

  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 Protect the htaccess File Print

  • 0

You can prevent unauthorized access to your htaccess file by adding this rule to the file:

# .htaccess protection

order allow, deny
deny from all
satisfy all

 


Was this answer helpful?

Related Articles

How to Password Protect a Directory in cPanel You can lock a directory with a password using the cPanel's Directory Privacy. 1. Log in to your... 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 Enable the Two-Factor Authentication on Your cPanel Account Security is important for our data safety. We recommend you to enable the Two-Factor... How to Disable the Two-Factor Authentication on Your cPanel Account Follow this instruction to remove two-factor authentication from your cPanel account.1. Log in to... How to Block Any IP Address via an htaccess Rule If you want to block an IP Address, you can add the below lines to your htaccess file. order...
« 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