Forum Discussion
Irule using a data group to bypass header injection
Trying to do a basic irule that looks at a data group and bypasses the header injection based on the data group uris. Been messing with the below but getting multiple errors when adding the top lines to bypass the existing irule posted below. Datagroup would be the uribypass
when HTTP_REQUEST {
if { ([class match [HTTP::path] starts_with "uribypass"]) } {
exit
else {
if { !([HTTP::header exists "test-Proxied" ]) } {
HTTP::uri /test[HTTP::uri]
# Inject custom header
HTTP::header insert test-Proxied 1
}
}
}
}
Recent Discussions
Related Content
* 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