Here you can find all the help documents and tutorials
How do I Password Protect Subdomain Directories?
February 13, 2026 — hnsupport
On Hostnirvana you can add username/password protection to a subdomain by password-protecting the subdomain’s document root directory (HTTP Basic Authentication).
What to do
Step 1: Confirm the subdomain’s document root
In your hosting package, check where the subdomain points (its document root). This is often something like:
public_html/subdomain/
Step 2: Enable Password Protection on that directory
In the hosting package that contains the subdomain:
Open the Password Protection feature for the package
Select the directory that is the subdomain’s document root
Add a username and password
Save/apply the change
After this, visiting the subdomain will prompt for the username/password.
Notes
This protects web access at the HTTP level (browser prompt).
If the subdomain points to a specific folder, protect that exact folder (not just public_html/ unless you want to protect the entire site).