Forum Discussion
nrelihan_68143
Nimbostratus
Jul 21, 2011How to omit bots & crawlers from an iRule?
Hey!
I've written a Geo location iRule that redirects users to their regional websites if they try to go to a domain website, www.test.com.
So for instance if a visitor from the UK goes...
nrelihan_68143
Nimbostratus
Aug 03, 2011Thanks for the help Michael,
So yes as my group is quite large I think ill create an external data group. So is the following correct?
/config/bigip.conf
class bots {
type string
filename "/var/class/bots.class"
}
/var/class/bots.class
"bots1"
"bots2"
"bots3"
In the irule i can just call this datagroup "bots"?
if { [matchclass [string tolower [HTTP::header User-Agent]] contains $::bots] } {
...
thanks,
Neil
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