如需移除,請網站管理者移除.
.htaccess 設定帳號密碼的保護
限制 IP 或是帳號密碼的保護
安全性設定 帳號密碼保護 AuthType Basic AuthName "Please Log In" AuthUserFile /some/path/.htpasswd Require valid-user
基本上只要放入以上的設定,連到該目錄時就會要求輸入帳號密碼了! 而 .htpasswd 的產生方式如下 htpasswd -c /some/path/.htpasswd newuser 輸入後會問你密碼,輸入兩次後就會產生 .htpasswd 檔案了
回覆