Forum Discussion
F5Hopper_28651
Aug 15, 2016Nimbostratus
Geolocation irule for states
so I have read many irules on the dev site, creating mine.
when HTTP_REQUEST {
if { ([string tolower [HTTP::uri]] starts_with "/testingpage") } {
Parse the client IP from the CDN header
...
janholtz
Aug 15, 2016Altostratus
Simple mistake, (I've done it myself) : set state [string tolower [whereis $client_ip abbrev]]
switch $state {
"NJ" -
"ID" {
string tolower will never have a "NJ" or "ID" result,
try "nj" or "id"
🙂
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