Support
- Advanced Backup
- Client Side
- Cloud Enterprise
- ColdFusion
- Control Panel
- About
- Access
- Addmiva
- Adwords
- Autorenew
- Bandwidth
- Cc
- Cfmapping
- Changepasswd
- Contacts
- Create
- Custom
- Customerror
- DNS
- Dsn
- Emailcontacts
- Frontpage
- Ftp
- Invoices
- Linux
- Logininfo
- Managedomain
- Manage_stats
- Newaccount
- Options
- Passphrase
- Passwd
- Permissions
- Privatessl
- Register
- Reseller
- Ssl
- Stats
- Tutorial
- Updateinfo
- Whoisprivacy
- Cpanel
- Set Permissions for Control Panel Contacts
- Renew DomainNname for Multiple Years
- Modify the Default Document Order for a Windows Account
- cPanel
- Customer Portal
- DNS Information
- Dedicated Servers
- DirectAdmin
- Domain Name
- dotDefender
- Dreamweaver
- FileCatalyst
- Front Page
- FTP
- General Information
- Hosted Exchange & SharePoint
- IIS6
- IIS7
- Juniper Netscreen Firewalls
- Linux
- List Server
- MIVA Merchant
- MySQL
- Patching / Server Updates
- phpMyAdmin
- Plesk
- Policies and Procedures
- Premium Spam Filtering
- Programming
- Ruby on Rails
- Search Engine Submission
- SharePoint 3
- SharePoint 2010
- SiteDesigner
- SmarterMail 3
- SmarterMail 4
- SmarterMail 5
- SmarterMail 6
- SmarterMail 7
- SmarterStats
- SmarterTrack
- SQL Server
- Secure Socket Layer (SSL)
- Uploading Your Website
- Video Tutorials
- Windows Server 2003
- Windows Server 2008
- Web Design
- WordPress
- Advanced Monitoring
- MediaWiki
- Enkompass
- Microsoft Outlook 2010
- Android
- Outlook Web Access
- Critical Availability Service
- NAS Data Transfer
- Customer Portal Demos
- Joomla
- Moodle
- Cloud Dedicated
- Gallery CMS
- phpBB
- Standard Monitoring
- Righteous Restore
- NAS (Network Attached Storage)
- Networking
- SmarterMail 8
- PCI Security Scan
- LinkTiger
- Windows Cloud VPS
- Linux Cloud VPS
- Linux VPS
- Windows VPS
- Hyper V
- ENSIM
- Alert Logic
- Webmin
- e107
- Vbulletin
- VPN
- Visual Vault
- Mozilla Thunderbird
- PyroCMS
- Active Directory
- Vmware Related
- Drupal
How do I password protect a website folder?
Please note: This support article is a guide for our Linux users only.
The following article explains how to password protect a website folder. When password protection is enabled people will be required to enter a login and password to view the site. This can be done on an individual folder or to the entire website (the htdocs folder).
To password protect a website folder, please follow these steps:
- Open a browser window and go to www.HostMySite.com.
- Click on Control Panel Login.
- Log into the Control Panel as one of the following:
- Account Administrator and select the appropriate domain
- Technical Contact for the domain
- Click on Apache and select Password
Protection.

- Select the folder you wish to protect. If you wish to setup
password protection for the entire website, select the htdocs
folder.

- Click Select Directory.

- Click Ok.
- Enter the necessary information:
- Username: enter the username you wish to use.
- Password: enter the password you wish to use.

- Click Add User.
Once this process is complete 2 files will be created in the folder you protected, a .htaccess file and a .htpasswd file. These files must remain in your directory for the password protection to function properly.
