Forum Discussion
muzammil_88686
Nimbostratus
Nov 28, 2012iRule - Source Address and "X-Forwarded For"
Currently we are using the below iRule which is chekcing the "X-Forwarded-For" in HTTP header and 10.0.0.0/16 source address
===
when HTTP_REQUEST {
if {([HTTP::header exists "X-F...
What_Lies_Bene1
Cirrostratus
Nov 29, 2012You're welcome. Sure, the return statement stops processing the iRule (within that event only) at the point it is used. So, if the conditions for the first if and switch are met, it stops there. The second one under the elseif isn't really required as its the end of the rule anyway but I include it as good practice in case the rule is expanded.
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