Forum Discussion
tacobell_112236
Mar 07, 2012Nimbostratus
Irule redirect to seperate link if user or ip is new
Hello All- I'm being asked to utilize the F5 to redirect all new users or new IP that hit our site to a separate page while at the same time allowing current users ( or those that have visited already) to continue on to the existing url -----is this possible??
---this is really generic
when CLIENT_ACCEPTED { log local0. "Client IP Address: [IP::client_addr]" set groupvalue [class match -value [IP::client_addr] equals address.datagroup.list ] set defaultpool "pool.ltm.ve.newurl.com" log local0. "Group Value: $groupvalue" switch $groupvalue { "groupa" { set destination "pool.one" } "groupb" { set destination "pool.two" } "groupc" { set destination "pool.three" } default { set destination $defaultpool } } if { [active_members $destination] < 0 } { log local0. "Destination Pool: $destination" pool $defaultpool } else { log local0. "Destination Pool: $destination" pool $destination } }
- hooleylistCirrostratusHi tacobell,
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