
如何拒絕除一個IP位址之外的任何IP對頁面的訪問,但在Apache中對該授權IP位址進行基本驗證?謝謝
答案1
/一些/位置/.htaccess
Allow from 149.15.90.70
deny from all
AuthType basic
AuthName "My Protected Page"
AuthBasicProvider file
AuthUserFile /staff/widricd/htpasswd
Require user mint
如何拒絕除一個IP位址之外的任何IP對頁面的訪問,但在Apache中對該授權IP位址進行基本驗證?謝謝
/一些/位置/.htaccess
Allow from 149.15.90.70
deny from all
AuthType basic
AuthName "My Protected Page"
AuthBasicProvider file
AuthUserFile /staff/widricd/htpasswd
Require user mint