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 Sharpe, Sam J <sam.sharpe+lists.redhat@xxxxxxxxx>:
> 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!)...

I found this for a customer today, it's a cracking read and has some
great pre-written ways of blocking this kind of thing:
http://www.askapache.com/htaccess/fight-blog-spam-with-apache.html


-- 
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