Linux 主機 (cPanel) 說明

Password protect directories in my Web Hosting (cPanel) account

To restrict access to directories on your Web Hosting (cPanel) website, use cPanel's Directory Privacy feature. Visitors may browse a restricted directory only after entering a username and password.

Note: This feature doesn't offer a typical member login experience like a bank or retail site. Features like that require databases and are much more complex.
  1. 前往您的 GoDaddy 產品頁面
  2. 請至「虛擬主機」下方,找到想使用的 Web Hosting (cPanel) 服務帳戶,然後點選旁邊的「管理」。
    點選「管理」
  3. 點選帳戶儀表板內的「 cPanel管理員」
  4. In the cPanel Home page, in the Files secton, select Directory Privacy.
  5. In the cPanel Directory Privacy page, browse to the directory you want to protect, and then select the directory name.
  6. Select Password protect this directory, then Enter a name for the protected directory and then select Save.
    Note: The name you specify is shown when a visitor tries to access the directory. It's just a label for that directory, and doesn't change the actual directory name.
  7. In the Create User section, complete the fields and then select Save.

更多資訊