設定密碼保護目錄


1. 前往 Control Panel 登入後,按 "Directory Protect"
(Control Panel 是在您的域名後面加上 ipanel,例如您的域名是 yourdomain.com,網址就是 http://www.yourdomain.com/ipanel

2. 按 "Create directory protection",便會出現以下畫面:



3. 例如需要密碼保護的目錄是 dir_protect,請在 Folder 欄位輸入 "/dir_protect"

4. 在 "Username and Password" 欄位輸入使用者名稱與密碼,請用以下格式輸入並按 "Submit":

admin:my_password

以上 "admin" 代表使用者名稱,"my_password" 代表對應密碼。
如需建立多個使用者名稱及密碼,只需在每一行包括一組使用者名稱與密碼即可。

 

現在存取 dir_protect 目錄下的檔案,需輸入使用者名稱及密碼才可成功。

Last update:
2018-05-02 03:57
Author:
Sam Tang
Revision:
1.0
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.