Forum Discussion
Albert__Tase_70
Nimbostratus
Jan 14, 2008Catch all
I have a very large irule and currently I need to add the following logic but not sure how too
I alkimia inserts say x in the http header when stff comes from them I need to be able to catc...
hoolio
Cirrostratus
Jan 15, 2008How about this?
when HTTP_REQUEST {
Check if HTTP header X does not have an IP address for the value
if {not ([HTTP::header value X] matches_regex {\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}})}{
Insert the client IP address in the X header
HTTP::header insert X [IP::client_addr]
}
}
Aaron
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