Tronadian Web Hosting logo Tronadian Web Hosting Tronadian Web Hosting logo Tronadian Web Hosting
News:
Automatic Daily Backups New Feature - SiteJet Builder
CAD
  • CAD
  • USD
  • 0
    Account
    ExtendReduce
    Home
    Domains
    Register a New Domain Transfer a Domain My Domains
    Store
    Browse All ----- Shared Hosting WordPress Hosting SSL Certificates SEO Tools Website Security Site & Server Monitoring Professional Email ----- Register a New Domain Transfer Domains to Us
    Announcements Knowledgebase Network Status Contact Us Articles
    Client Login
    Knowledgebase
    1. Portal Home
    2. Knowledgebase
    3. Security
    4. How to Password Protect a Directory in cPanel
    Categories
    • SLA & Legal Policies
      2
    • Backup/Restore
      5
    • CloudLinux (cPanel)
      10
    • cPanel - Control Panel
      24
    • Databases
      11
    • DirectAdmin
      48
    • DNS - Nameservers
      6
    • Domain Management
      10
    • Email
      17
    • FAQ
      7
    • FTP
      9
    • Installing a Control Panel
      5
    • Mail Filters & SPAM
      8
    • Mobile
      11
    • Others
      3
    • PayPal
      7
    • Plesk
      47
    • Security
      10
    • SiteJet
      1
    • SiteWorx/InterWorx
      58
    • Softaculous
      69
    • SolusVM 2
      16
    • SSL
      4
    • Virtualizor
      19
    • WHM
      18
    • WordPress
      17
    Tag Cloud
    Support
    • My Support Tickets
    • Announcements
    • Knowledgebase
    • Downloads
    • Network Status
    • Open Ticket
    How to Password Protect a Directory in cPanel
    Print

    You can lock a directory with a password using the cPanel's Directory Privacy.


    1. Log in to your cPanel account.


    2. In the Files section, click on Directory Privacy.


    3. Click on the directory to open it.


    4. Click on the Edit, showing next to the directory you want to protect.


    5. Under Security Settings, check-mark Password protect this directory. Then click on Save.


    6. Now click on Go back.



    7. Scroll down the page. Under Create User, fill in the username and password fields or use the Password Generator option to generate a new random password and copy it to Notepad. Click on Save.



    If you try to open the password-protected directory in your browser via the URL www.example.com/myfolder, your browser prompts for credentials.

    You have password protected a directory in cPanel to add an extra layer of security to your website content.

    Was this answer helpful?

    0 Users Found This Useful (0 Votes)

    Related Articles

    Most Popular Articles

    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...

    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 Block an IP Address to Deny Access to Your Website

    You can blacklist an IP Address to deny access to your website.1. Log in to your cPanel account....

    How to Protect Website Images From Being Displayed at an External Website

    External websites may display your website images on their websites, thus stealing 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...

    Tronadian Web Hosting logo Tronadian Web Hosting logo

    contact@tronadian.ca
    Product
    • Web Hosting
    • WordPress Hosting
    Domains
    • Domain Checker
    • Transfer Domain
    Services
    • SSL Certificates
    • Professional Email
    • Website Security
    • SEO Tools
    Legal
    • Privacy Policy
    • Terms Of Service
    • Acceptable Usage Policy
    • Contact Us
    • Articles
    Copyright © 2026 Tronadian Web Hosting. All Rights Reserved.
    FraudLabs Pro Prevents Fraud for Digital Businesses Payments
    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

    $ CAD
    $ USD

    Generate Password

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

    We use cookies to improve your browsing and support experience. By continuing, you agree to our Privacy Policy.