Forum Moderators: phranque
<Directory /domain/www/offlimits>
AllowOverride AuthConfig FileInfo
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^Yahoo!\Slurp [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*Yahoo.*$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*Slurp.*$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*msnbot.*$
RewriteRule .* - [F,L]
</directory>
will they be able to access the rest of the site? I will ban on robots.txt too, but this is extra, in case they ignore robots.txt.
thanks in advance,
EG /domain/www/offlimits/.htaccess
I believe the correct syntax is:
#RewriteCond %{HTTP_USER_AGENT} ^(.*)Yahoo(.*) [OR]
#RewriteRule (.*) - [F,L]
(No $ on the end of the condition.)
I would also consider [NC,OR] (No Case) and only 1 rule for each engine.
Justin
[edited by: jdMorgan at 2:17 pm (utc) on April 12, 2005]
[edit reason] Removed off-topic comments. See TOS. [/edit]