Categories 7 Account Management 2 Advanced Management 7 Backup/Restore 5 Cron Jobs 22 Database Management 6 DNS - Nameservers 12 DNS Record Management 22 Domain Management 63 Email Management 8 File Manager 18 FTP 7 PayPal 10 PHP 10 Security 1 SSH 5 SSL 4 Web Disk 18 WordPress Categories Account Management (7) Advanced Management (2) Backup/Restore (7) Cron Jobs (5) Database Management (22) DNS - Nameservers (6) DNS Record Management (12) Domain Management (22) Email Management (63) File Manager (8) FTP (18) PayPal (7) PHP (10) Security (10) SSH (1) SSL (5) Web Disk (4) WordPress (18) < Back 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 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. 1 Users Found This Useful Was this answer helpful? Yes No 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 the htaccess File You can prevent unauthorized access to your htaccess file by adding this rule to the file: #... 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... Tag Cloud AOL bluehost domain.com dreamhost export export email fix thunderbird Gmail godaddy googledomains hover import import email ionos make Thunderbird faster namecheap networksolutions old email Outlook Sell Domain shopify slow Thunderbird Thunderbird Transfer Domain transfer-in White List Whitelist Yahoo Support My Support Tickets Announcements Knowledgebase Downloads Network Status Open Ticket