1 2 3 4 5 6 7 8 9 10 11 12 | AuthType Basic AuthName "Secure site" AuthUserFile /home/domains/www.example.com/secure.passwd Require valid-userOrder deny,allow Deny from all#Repeat the line below for all allowed IP addresses. Allow from 127.0.0.1Satisfy All上述的內容複制貼上到.htaccess後,就可以達成: 使用者一定要滿足 (1)登入時要輸入密碼 或是 (2)連線的IP address要是127.0.0.1 兩個條件中,其中一個條件滿足後,就可以登入。 |
- 1 Utilisateurs l'ont trouvée utile
