.htpasswd is a simple password protection file used to secure directories on Apache web servers. When placed in a folder, it requires visitors to enter a username and password before accessing content. This provides a basic layer of security for private areas of your website.
The file contains encrypted credentials (username:hashed_password pairs). You create it using the htpasswd command-line tool or through your hosting control panel (like cPanel). For example:
htpasswd -c /path/to/.htpasswd usernameTo activate protection, you also need an .htaccess file in the same directory with specific directives:
AuthType Basic
AuthName "Restricted Area"
AuthUserFile /full/path/to/.htpasswd
Require valid-user
Important: Always place the .htpasswd file outside your public web directory (e.g., above public_html) if possible, to prevent direct access. Remember, this is basic authentication – for highly sensitive data, consider more advanced security measures like SSL/HTTPS.
Find the ideal hosting solution tailored to your requirements. Our flexible plans feature clear costs, providing essential power without added complexity.
Excellent for a single-page site, a straightforward personal journal, or presenting a compact portfolio on the web.
Ideal for Beginners
1 GB Disk Space
Unlimited Bandwith and Domains
Free Let's Encrypt SSL
SSD NVME disks
24/7 Human Support
Suited for an active weblog, a corporate service portal, or a budding e-commerce venture.
Perfect for Growth
2 GB Disk Space
Unlimited Bandwith and Domains
Free Let's Encrypt SSL
SSD NVME disks
24/7 Human Support
Appropriate for company websites with add-ons, mid-size online shops, or interactive forum sites.
Best for Companies
5 GB Disk Space
Unlimited Bandwith and Domains
Free Let's Encrypt SSL
SSD NVME disks
24/7 Human Support
Tailored for sizable digital storefronts, content-heavy portals, or multi-user publishing systems.
Most Popular Option
10 GB Disk Space
Unlimited Bandwith and Domains
Free Let's Encrypt SSL
SSD NVME disks
24/7 Human Support
Powerful enough for enterprise-level websites, subscription-based services, or handling several web initiatives.
Excellent Value Package
20 GB Disk Space
Unlimited Bandwith and Domains
Free Let's Encrypt SSL
SSD NVME disks
24/7 Human Support
Engineered for demanding web apps, vast digital archives, and sophisticated data-centric platforms.
Maximum Power Plan
50 GB Disk Space
Unlimited Bandwith and Domains
Free Let's Encrypt SSL
SSD NVME disks
24/7 Human Support