Bill_Rowell_102
May 18, 2006Nimbostratus
Reading User-Agent field for spiders
Trying to emulate the article by network computing:
http://devcentral.f5.com/Default.aspx?tabid=29&ArticleType=ArticleView&ArticleID=40&PageID=47
I've narrowed the code down to this for my install, where I just need the spiders to be redirected to another machine for optimized spider content:
when HTTP_REQUEST {
if { [matchclass [HTTP::header User-Agent] contains $::useragents] } {
pool spiders [HTTP::header Host]
}
else {
pool www [HTTP::header Host]
}
}
For the useragents field I'm using the following in the Data Group List as a String:
Googlebot
googlebot
So far no worky. Any help or insight is greatly appreciated.
Thanks