Forum Discussion
MocoSpace_63233
Nimbostratus
Oct 10, 2007Redirecting User-Agent Googlebot to new pool or server
Ok - simple problem but I am a newbie. We are getting killed with Googlebot-Mobile spiders. Chewing up all ouer connections. We don't want to stop it but ultimately we may want to rate limit it or som...
hoolio
Cirrostratus
Mar 19, 2008Actually, I think I misread your request. You want to rewrite the user-agent header to a static value? If so, you can use something like this:
when HTTP_REQUEST {
if {$something == 1}{
Replace the User-Agent header (inserting it if it doesn't exist already)
HTTP::header replace "User-Agent" "x-bot"
}
}
Aaron
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