Forum Discussion
jay_41157
Nimbostratus
Apr 12, 2011scrub out going traffic.
HI,
I need to be able to scrub the response going to the end user.
What I need is the F5 only send back data that is between the below tags and drop the rest. ..... ...
hoolio
Cirrostratus
Apr 12, 2011So you could set the string expression to something like this:
STREAM::expression {@[^<]+@@}
And use that in an iRule:
when HTTP_REQUEST {
Disable the stream filter for all requests
STREAM::disable
}
when HTTP_RESPONSE {
Check if response type is text
if {[HTTP::header value Content-Type] contains "text"}{
STREAM::expression {@[^<]+@@}
Enable the stream filter for this response only
STREAM::enable
}
}
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