Restrict access to a specific directory on your website by requiring a username and password.
Steps
-
Navigate to your website management page in iPanel.
[screenshot: website management page]
-
Click the Security tab.
[screenshot: security tab]
-
Find the Directory Protection or Password Protect section.
[screenshot: directory protection section]
-
Click Add Protection.
[screenshot: add protection button]
-
Enter the Directory Path you want to protect (e.g.,
/admin).[screenshot: directory path input]
-
Set a Username and Password for access.
[screenshot: username and password fields]
-
Click Save to apply the protection.
[screenshot: save button]
Tip: Password-protected directories use HTTP Basic Authentication. Combine this with SSL to ensure credentials are encrypted in transit.