htpasswd is a utility for creating and managing password files used to authenticate users on web servers, primarily Apache. It stores usernames and encrypted passwords in a simple text file, typically named .htpasswd. This file works alongside .htaccess to restrict access to specific directories or files on your website.
Common use cases include:
To create a password file, use the command: htpasswd -c /path/to/.htpasswd username. The -c flag creates a new file (use it only for the first user). To add more users, omit -c: htpasswd /path/to/.htpasswd anotheruser.
Passwords are encrypted using algorithms like bcrypt, MD5, or SHA. Always place the .htpasswd file outside your web root to prevent direct access via browser. Then, in your .htaccess file, add:
AuthType Basic
AuthName "Restricted Area"
AuthUserFile /full/path/to/.htpasswd
Require valid-user
This setup prompts visitors for a username and password. While effective for basic protection, htpasswd is not suitable for large-scale applications—consider a database-backed system for those. For most hosting users, it remains a quick, reliable method to add a layer of security to specific parts of a website.
We provide a range of scalable shared hosting solutions designed for blogs, business sites, and online portfolios. Each plan includes essential features to ensure optimal performance.
Ideal for launching a simple personal blog or a small static website to establish your initial online presence.
Starter Package
1 GB Disk Space
Unmetered data transfer and support for multiple domains
Complimentary Let's Encrypt SSL certificate
High-performance SSD NVME storage drives
Daily automated backups for data safety
Perfect for growing blogs or small business websites that require more storage and resources.
Growth Plan
2 GB Disk Space
Unmetered data transfer and support for multiple domains
Complimentary Let's Encrypt SSL certificate
High-performance SSD NVME storage drives
Daily automated backups for data safety
Suited for dynamic websites, online communities, or small online stores with moderate traffic.
Business Package
5 GB Disk Space
Unmetered data transfer and support for multiple domains
Complimentary Let's Encrypt SSL certificate
High-performance SSD NVME storage drives
Daily automated backups for data safety
Excellent for resource-intensive websites, medium-sized online stores, or multimedia-rich portfolios.
Professional Tier
10 GB Disk Space
Unmetered data transfer and support for multiple domains
Complimentary Let's Encrypt SSL certificate
High-performance SSD NVME storage drives
Daily automated backups for data safety
Designed for high-traffic business websites, extensive blogs, or e-commerce platforms with many products.
Advanced Solution
20 GB Disk Space
Unmetered data transfer and support for multiple domains
Complimentary Let's Encrypt SSL certificate
High-performance SSD NVME storage drives
Daily automated backups for data safety
Our most powerful shared hosting plan, built for large enterprises, major online marketplaces, and high-demand applications.
Enterprise Grade
50 GB Disk Space
Unmetered data transfer and support for multiple domains
Complimentary Let's Encrypt SSL certificate
High-performance SSD NVME storage drives
Daily automated backups for data safety