Hi Joe... I have been working with webguy9. What needs to happen is everytime a bot or a particular URI pattern occurs in any HTTP_REQUEST, we need to proxy that request to a completely different domain (hosted at a 3rd party site)
Here is what we have right now:
when HTTP_REQUEST {
if { [matchclass [HTTP::host] equals $::SomeHost] } {
if { not ([matchclass [string tolower [HTTP::header User-Agent]] contains $::Bots] or [matchclass [string tolower [HTTP::uri]] contains $::SomeURI]) } {
pool SomePool
}
else
{
HTTP::redirect "http://3rdpartysite.com[HTTP::uri]"
}
}
}
So basically what needs to be different is the HTTP::redirect... would replacing it with this line be suffucient?
HTTP::header replace "Host" "http://3rdpartysite.com[HTTP::uri]"
Thanks