Forum Discussion
Ed_27995
Nimbostratus
May 28, 2008iRule to set Fallback Host based on user ID
Hi All,
Extremely new to iRules and TCL scripting. I have created the code for an iRule, syntax checks as correct, as follows:
when HTTP_REQUEST {
if {[findstr [H...
hoolio
Cirrostratus
May 28, 2008Hi Ed,
A fallback host would only be used if the pool is down. If you always want to redirect the clients which match the URI logic, you should use HTTP::redirect (Click here) or HTTP::respond (Click here) instead.
Is webctid a parameter in the query string or a string in the path? If it's a URI parameter, you could parse the value with [URI::query [HTTP::uri] "parameter_name"]. Your string method might be faster though.
Also, is there anything stopping a malicious user from changing or removing the string to avoid being redirected?
Aaron
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