Help Center Help Center
Home Website
Home
Categories
💰 Billing & Payments
  • How to Change the Billing Cycle for Existing Services
  • How to Make Payments With BRAVO App (mBOK Alternative)
  • Activating Automatic Credit Usage for Renewal Invoices of Services
  • Domain Expiration Process
  • What Happens When Invoices Are Late on Payment
  • Affiliate Program Terms
  • How to Make Payments with YallaPay
  • Available Payment Methods
📰 Dashboard and Account Management
  • Telegram Alerts - Modify Preferences
  • WhatsApp Alerts - Modify Preferences and View History
  • How to Transfer Services or Domains to Another Client
  • View History of Email Messages
🟠 Shared and Business Hosting Services
  • About PHPMail on Shared and Business Hosting
  • What does Entry Process mean?
  • How to View Nameservers and Other Service Information
  • Email Sending Limits
🌐 Domain Services
  • Requirements for Transferring a Domain to Us
  • How to Edit the Settings for Your Domain
📨 Business Email Services
  • Setting Up Your Domain With The Business Email Service
🖥️ VPS Services
  • Considerations for VPS Services
  • How to Point a Domain to VPS Server Using Cloudflare
🛒 The Store
  • How to Order a Shared Hosting Plan
  • How to Register a New Domain Name
  • How to Transfer a Domain to Us
  • How to migrate your hosting to us
cPanel - Basics
  • How to access cPanel
  • How to update your cPanel Contact Information or receive a notification on reaching quota limit?
  • How to change cPanel style/theme?
  • How to change language of your cPanel?
  • How to change your cPanel password from the Dashboard Area?
cPanel - Email Accounts
  • How to Create Email Account in cPanel?
  • How to change the password of your email account?
  • How to Access your Email Account in the Browser using cPanel Webmail
Email Clients Configuration
  • How to Link Email Account on Microsoft Outlook
  • How to View Email Client Configuration
Configuring Email on Mobile
  • How to Set Up a cPanel Email Account on iOS Devices
  • How to Set Up a cPanel Email Account on Android Devices
cPanel - Domains
  • How to Park a Domain in cPanel?
  • How to Remove Parked Domain name in cPanel?
  • How to Create Addon Domains?
  • How to Remove an Add-on Domain?
  • How to Redirect an Add-on Domain?
  • How to Create a Subdomain in cPanel?
  • How to Remove a Subdomain in cPanel?
  • How to Redirect subdomain to an external url
  • How to Remove Domain Redirect in cPanel?
cPanel - Backup and Restore
  • How to Create a Full or Partial Account Backup
cPanel - Databases
  • How to create a database in cPanel?
  • How to rename a database in cPanel?
  • How to delete a database in cPanel?
  • How to Create a Database Username in cPanel?
  • How to add a user to a database and add privileges?
  • How to import database via phpMyAdmin in cPanel?
  • How to export database table via phpMyAdmin in cPanel?
  • How to edit database table via phpMyAdmin in cPanel?
  • How to delete database table via phpMyAdmin in cPanel?
  • How to optimize database via phpMyAdmin in cPanel?
  • How to Repair database via phpMyAdmin in cPanel?
cPanel - FTP and Files
  • How to create an FTP Account in cPanel?
  • How to change the password of the FTP Account in cPanel?
  • How to change the FTP User Quota in cPanel?
  • How to Delete an FTP User account from cPanel?
  • How to upload files via the cPanel FileManager?
  • How to create a new folder or files in the cPanel File Manager?
  • How to Edit file in the cPanel File Manager?
  • How to Edit htaccess File via the cPanel Filemanager?
  • How to check disk usage of directory and bandwidth usage?
  • How to Access cPanel Web Disk?
cPanel - Mail Filters & SPAM
  • How to Create Account Level/Global Email Filter in cPanel to Fight Spam?
  • How to Edit Account Level/Global Email Filter in cPanel?
  • How to Delete Account Level/Global Email Filter in cPanel?
  • How to Create "User Level Email Filter" in cPanel?
  • How to Edit "User Level Email Filter" in cPanel?
  • How to Delete "User Level Email Filter" in cPanel?
cPanel - Security
  • How to protect a folder with username and password in cPanel?
  • How to blacklist an IP Address to deny it access to your website?
  • How to protect your website's images from an external website?
  • How to ban any IP Address via .htaccess?
  • How to disable directory browsing using .htaccess?
  • How to protect your .htaccess file?
  • How to restrict directory access by IP address?
  • How to Enable or Disable Mod Security in cPanel?
  • How to Enable the Two-Factor Authentication on Your cPanel Account?
  • How to Disable the Two-Factor Authentication on Your cPanel Account?
cPanel - SSL
  • How to Generate a Certificate Signing Request - CSR in cPanel?
  • Why SSL is not working for my website
  • How to Install Free SSL Certificate using LetsEncrypt
  • How to retrieve an CSR from cPanel?
  • How to Remove a CSR code from cPanel?
  • How to run AutoSSL on your Domains to install an SSL via cPanel?
  • How to Include or Exclude a Domain from AutoSSL in cPanel?
cPanel - Advanced Functions
  • How to Setup Node.js Application in cPanel
  • How to create Cronjob via cPanel?
  • How to Edit or Delete Cronjob via cPanel?
  • How to Update a Cronjob E-mail Address?
  • How to change PHP version on your domain using cPanel?
  • How to Reset the PHP Version to the Default Version, Using cPanel?
  • How to Set the PHP Version per Domain, Using cPanel?
  • How to Set the PHP Version per Folder?
cPanel - Zone Editor and DNS Records
  • How to add TXT Record in cPanel using DNS Zone Editor
  • How to add A Record in cPanel using DNS Zone Editor
  • How to add a MX Record in cPanel using DNS Zone Editor
  • How to edit or remove MX Record in cPanel using the DNS Zone Editor
  • How to add CNAME Record in cPanel using the DNS Zone Editor
  • How to edit or remove CNAME Record in cPanel using the DNS Zone Editor
  • How to edit or remove a Record in cPanel using the DNS Zone Editor
Updating Nameservers
  • How to update DNS Nameserver on Name.com?
  • How long does it take for name server changes to take effect?
  • How to update DNS Nameserver on DynaDot?
  • How to update DNS Nameserver of NameCheap.com?
  • How to Update the DNS Nameserver on NetEarthOne or LogicBoxes Based Registrars?
  • How to update DNS Nameserver on Godaddy?
  • How to update DNS Nameserver on 123-reg?
Chatwoot Integration for WHMCS
  • How to Install Chatwoot Integration for WHMCS
  • How to Create the API Channel in Your Chatwoot Account
  • How to Setup Chatwoot Live Chat Widget
  • How to Pass Custom Attributes About Your Customer to Chatwoot
Mozilla Thunderbird
  • How to Setup a cPanel Email account with Mozilla Thunderbird?
  • How to check for new email in Mozilla Thunderbird?
  • How to send email using Mozilla Thunderbird?
  • How to delete email message in Mozilla Thunderbird?
  • How to reply to email in Mozilla Thunderbird?
  • How to forward email in Mozilla Thunderbird?
FileZilla Client
  • How to Install the FTP Client Filezilla on Windows?
  • How to Access or Connect to Your FTP Account via the FileZilla FTP?
  • How to Create or Delete a Directory Using the FileZilla FTP Client?
  • How to upload Index file to your site using FileZilla?
  • How to download files and folders to your computer using FileZilla?
Softaculous
  • What is Softaculous?
  • How to Access Softaculous in cPanel?
  • How to Install Wordpress via Softaculous in cPanel?
Wordpress
  • How to access the Wordpress admin account?
  • How to remove sample comments, posts on a new WordPress blog?
  • How to start writing your first blog post in WordPress?
  • How to remove your post in Wordpress?
  • How to remove multiple posts with a single click in WordPress?
  • How to add a new category in WordPress?
  • How to remove the Uncategorized category from WordPress?
  • How to remove a category in WordPress?
  • How to Install a New Theme in WordPress?
  • How to Manually Install a Theme on WordPress Using the Admin Dashboard?
  • How to Delete/Remove a WordPress theme from the WordPress Dashboard?
  • How to Install a Plugin in WordPress?
  • How to Manually Install a Plugin in WordPress?
  • How to Deactivate and Delete a Plugin in WordPress?
  • How to Forcefully Update a Plugin in WordPress?
  • How to Change the Password of a Wordpress Account?
  • How to Change the Display Name of a WordPress User Account?
Others
  • How to Force HTTPS via htaccess
  • Consequences of Using Nulled Software
  • How to create a user-friendly URL using htaccess?
  • How to redirect a page to another page or website using htaccess?
  • php error: Allowed memory size of x bytes exhausted
Home cPanel - Security How to protect your .htaccess file?

How to protect your .htaccess file?

Open in
View as Markdown
Open in ChatGPT Open in Claude
Staff

Staff

Last updated on May 29, 2026

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

Back to cPanel - Security
Made with WevrLabs CRM Suite WevrLabs CRM