Forum Discussion
jcarpenter82
Dec 18, 2024Nimbostratus
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...
JRahm
Jan 01, 2025Admin
Hi jcarpenter82
You are close, but missing a closing bracket on the first if statement, and you want return, not exit there. I think this is what you're after:
when HTTP_REQUEST {
if { !([class match -- [string tolower [HTTP::path]] starts_with uribypass] || [HTTP::header exists "test-Proxied"]) } {
HTTP::uri "/test[HTTP::uri]"
HTTP::header insert test-Proxied 1
}
}
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