Forum Discussion
1 Reply
Sort By
Hi Jayrod,
If the
query is already send by the user, then try this snippet...asm=true
when HTTP_REQUEST { if { [HTTP::query] contains "asm=true" } then { if { [HTTP::query] equals "asm=true" } then { HTTP::uri [HTTP::path] } elseif { [HTTP::query] starts_with "asm=true&" } then { HTTP::uri [string map [list "asm=true&" ""] [HTTP::uri]] } else { HTTP::uri [string map [list "&asm=true" ""] [HTTP::uri]] } } }
If the
query is injected by ASM (I duno if ASM add this param?), then you may try this snippet...asm=true
when HTTP_REQUEST_SEND { clientside { if { [HTTP::query] contains "asm=true" } then { if { [HTTP::query] equals "asm=true" } then { HTTP::uri [HTTP::path] } elseif { [HTTP::query] starts_with "asm=true&" } then { HTTP::uri [string map [list "asm=true&" ""] [HTTP::uri]] } else { HTTP::uri [string map [list "&asm=true" ""] [HTTP::uri]] } } } }
Cheers, Kai