Disable APM rewrite for specicfic URI and redirect to external website
Problem this snippet solves: This will disable APM for a specific URI (HEX mangled APM URI) and redirect user to the original address of the website. Code : when HTTP_REQUEST {
if { [HTTP::uri] c...
Published Jun 07, 2016
Version 1.0Ali_Khan
Nimbostratus
Joined May 23, 2019
Ali_Khan
Nimbostratus
Joined May 23, 2019
Stanislas_Piro2
Jul 06, 2017Cumulonimbus
Hi,
Here is a more generic version of this irule
when HTTP_REQUEST {
if {[scan [HTTP::uri] {/f5-w-%[^$]$$%s} encressource uri] > 1} {
set ressource [binary format H* $encressource]
switch -- [URI::host $ressource] {
"www.google.com" -
"www.youtube.com" -
"test3.mycompany.com" {
HTTP::respond 302 Location $ressource$uri
}
}
}
}