特定ユーザーエージェントアクセス禁止設定(SetEnvIf User-Agent)
SetEnvIf User-Agent "Mozilla/4.0 \(compatible; MSIE 8.0; Windows NT 6.1\)" ng_ua SetEnvIf User-Agent "Macintosh" ng_ua Order allow,deny Allow from all Deny from env=ng_ua # 特定ユーザーエージェントアクセス禁止設定です。 # SetEnvIf User-Agent の後にアクセスを禁止したいユーザーエージェントの # ユーザーエージェントまたはその一部を設定します。 # 設定したユーザーエージェントが含まれるユーザーエージェントでのアクセスが禁止されます。 # ユーザーエージェントは複数指定も可能です。
〔 サンプルページ 〕