Hi Mariusz,

On Wed, May 19, 2010 at 2:18 PM, Mariusz Gronczewski <[email protected]>wrote:

> One more thing about config, u dont need to do
>     acl is_msn01    hdr_sub(X-Forwarded-For) 64.4.0
>     acl is_msn02    hdr_sub(X-Forwarded-For) 64.4.1
>     acl is_msn03    hdr_sub(X-Forwarded-For) 64.4.2
> and then
>   use_backend robot_traffic if is_msn01 or is_msn02 or is_msn03
>
> u can just do
>     acl is_msn    hdr_sub(X-Forwarded-For) 64.4.0
>     acl is_msn    hdr_sub(X-Forwarded-For) 64.4.1
>     acl is_msn    hdr_sub(X-Forwarded-For) 64.4.2
>
> and then
>  use_backend robot_traffic if is_msn
>
> ACLs with same name are automatically ORed together.
>
> or better yet, match bots by user-agent not by IP
> http://www.useragentstring.com/pages/useragentstring.php
>
>
Thank you so much.  This is definitely helpful!

C.Y.

Reply via email to