Forum Discussion
Neil_66348
Nov 09, 2010Nimbostratus
iRule GeoIP Targeting
Hi Guys ,
We're looking to implement some targeting thats found in 10.2 on our F5's.
Performing matching at the IP level works fine , I've found some example code for matching to t...
naladar_65658
Nov 09, 2010Altostratus
I have never used it before, but I am very curious if something like this would work? It does compile, I am just uncertain of the ramifications of using event disable in an iRule:
when HTTP_REQUEST {
set state [class match -value [whereis [IP::client_addr] state] equals uk_regions]
if {($state ne "")}{
switch $state {
Leeds { pool $region }
York {if { [HTTP::uri] starts_with "/ab/york"} {
event HTTP_REQUEST disable
} else {
HTTP::redirect http://62.190.1.1/ab/york
}
}
grlond {HTTP::redirect http://www.google.com/news}
default {pool DEV-HTTP-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