iveCloud
  • Home
  • Store
    • Browse All
    • Professional E-mail Hosting
    • WordPress Hosting
    • cPanel Web Hosting
    • cPanel Reseller Hosting
    • SSL Certificates
    • [ZA] Cape Town - Linux VPS
    • [ZA] Cape Town - Windows VPS
    • [ZA] Johannesburg - Linux VPS
    • E-mail Services
    • SSL Certificates
    • Register a New Domain
    • Transfer Domains to Us
  • Announcements
  • Knowledgebase
  • Network Status
  • Affiliates
  • Contact Us
  • More
iveCloud
  • 0 Shopping Cart
  • Account
    • Login
    • Register
    • Forgot Password?
  1. Portal Home
  2. Knowledgebase
  3. Security
  4. How to protect your .htaccess file?

  Categories

Backup/Restore
4
cPanel - Control Panel
24
Databases
11
DNS
1
Domain Management
17
Email
12
FTP
4
Installing a Control Panel
6
Mail Filters & SPAM
6
Mobile
11
Others
3
Security
10
Softaculous
71
SSL Certificates
2
Wordpress
17

  Categories

  Tag Cloud

Add DNS Record CAA Record Can i change my domain? Cancel my hosting Cancellation Comodo Domain Auto Renew Domain Parking Domain Registration Domain Renewal Domain Transfer domains propagation friendly identifier GEOTrust Hosting How to human-friendly computer address internet uses IP addresses Keep domain popular domain extentions Rapid SSL Register my domain Registering a domain name SSL SSL Certificates Symantec TDL Registration TDL's Which domain name

  Support

My Support Tickets
Announcements
Knowledgebase
Downloads
Network Status
Open Ticket
Dev License: This installation of WHMCS is running under a Development License and is not authorized to be used for production use. Please report any cases of abuse to abuse@whmcs.com

How to protect your .htaccess file? Print

  • 0

For security purpose we recommended you to prevent access to your .htaccess file from unauthorized access.

Add this code to your .htaccess file:

# .htaccess protection

order allow,deny
deny from all
satisfy all

Was this answer helpful?

Related Articles

How to protect your website's images from an external website? External Website can use < img /> tag to display an image from your site somewhere else on... How to disable directory browsing using .htaccess? For security purposes, we recommend that you to disable directory browsing on your website so no... 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... How to ban any IP Address via .htaccess? If someone is trying to hack your website or you want to block their IP Address, you can add this... How to blacklist an IP Address to deny it access to your website? You can lock directory with a password by using cPanel "Password Protected Directories" option.1....
« Back

Powered by WHMCompleteSolution

Copyright © 2026 iveCloud. All Rights Reserved.


Loading...
Loading...
Choose language
العربية
Azerbaijani
Català
中文
Hrvatski
Čeština
Dansk
Nederlands
English
Estonian
Persian
Français
Deutsch
עברית
Magyar
Italiano
Macedonian
Norwegian
Português
Português
Română
Русский
Español
Svenska
Türkçe
Українська

Choose Currency

R ZAR
$ USD
€ EUR
₹ INR

Generate Password

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