Forum Discussion
Ravi_75522
Nimbostratus
Feb 02, 2012Problem with bots redirect
We have defined a robots class, and if any user agent matches an entry in robots class then it redirected to a pool. But the problem is that we want to redirect the traffic to different pool when the ...
i think the irule could be okay.
anyway, according to sol9800, the irule should select a pool under every possible condition.
sol9800: Using an iRule to load balance HTTP requests to multiple pools
http://support.f5.com/kb/en-us/solutions/public/9000/800/sol9800.html
e.g.
when HTTP_REQUEST {
if { ([matchclass [string tolower [HTTP::header User-Agent]] contains googlebot]) and ([HTTP::uri] contains "/blog")} {
pool xyz
} elseif { [matchclass [string tolower [HTTP::header User-Agent]] contains robots] } {
pool NeimansBOT
} else {
pool default_pool
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects