Forum Discussion
Valentine_96813
Nimbostratus
Dec 14, 2012Redirect on client IP and uri
I have a request to redirect a session if certain IP comes in and then only if it has a keyword in the URI and then setting persistence. SO basically combining:
when CLIENT_ACCEPTED { ...
What_Lies_Bene1
Cirrostratus
Dec 14, 2012You can only combine them in the HTTP event;
when HTTP_REQUEST {
if { (([HTTP::path] starts_with "/tulip/") && ([IP::addr [IP::client_addr] equals 10.0.0.0/8])) } {
persist cookie
}
else {
persist source_addr
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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