
Apache で、1 つの IP アドレスを除くすべての IP からのページへのアクセスを拒否し、この承認済み IP アドレスに対して基本認証を行うにはどうすればよいでしょうか。ありがとうございます。
答え1
/some/location/.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