Re: Looking for some apache config help to block evil spiders

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/10/10 Steven W. Orr <steveo@xxxxxxxxxxx>:
> RewriteCond %{HTTP_USER_AGENT}  ^Baiduspider.* [OR]
> RewriteCond %{HTTP_USER_AGENT}  ^msnbot.* [OR]
> RewriteCond %{HTTP_USER_AGENT}  ^NaverBot.* [OR]
> RewriteCond %{HTTP_USER_AGENT}  ^Sogou-Test-Spider.*
> RewriteCond %{HTTP_USER_AGENT}  ^Mozilla/4.0.*
> RewriteCond %{HTTP_USER_AGENT}  ^T-Mobile Dash.*
> RewriteRule .* - [F,L]

Are you actually missing the [OR] at the end of the 4th and 5th
RewriteCond lines, or is that a mispaste...

If you are missing the [OR] then you are only matching things that
starts with any of the top four matches AND Mozilla/4.0 AND T-Mobile
Dash (somewhat mutually exclusive!)...

Correct that and try again...

-- 
Sam

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux