MohanK
Oct 16, 2020Altostratus
iRule for redirecting the traffic of GoogleBot to a different pool using X-Header Value
We need to redirect Google Bots traffic to another Pool, What is the effective and simple iRule I can use to accomplish that ?
We can filter the traffic using X-Header Value, which is set to value "8" are good to redirect to a new pool.
Does Below iRule Work ?
when HTTP_REQUEST {
if { [matchclass [string tolower [HTTP::header X-forwarded-for]] equals 8] } {
pool A
}
pool default
}
OR
when HTTP_REQUEST {
if { [matchclass [string tolower [HTTP::header User-Agent]] contains googlebot] } {
pool A
}
pool default
}