BASIC認証かIP認証かどちらかで認証する方法

通常の.htaccessに「Satisfy any」と許可したいIPを追加すると出来るようになる。
「Satisfy all」とするとBASIC認証とIP認証の両方が必要になる。

AuthUserFile /home/.htpasswd
AuthGroupFile /dev/null
AuthName "Please enter your ID and password"
AuthType Basic
require valid-user
Satisfy any
order deny,allow
allow from 120.xx.xx.xx
deny from all