Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はGoogle全体を検索しており、.htaccessで1つのユーザーエージェントのみを許可する方法を本当に知る必要がありますか?
私が見つけたのは、専用サーバーまたはプライベートサーバーでそれを行う方法だけです。
許可するユーザー エージェントが次の場合:Lynx/2.8.8dev.12
Lynx/2.8.8dev.12
次に、制限するディレクトリの htaccess にこれらのルールが必要です。
RewriteEngine On RewriteCond %{HTTP_USER_AGENT} !Lynx/2\.8\.8dev\.12 [NC] RewriteRule ^ - [F,L]
他のすべてのユーザー エージェントは 403 で禁止されています。