Forum Discussion
Stanislas_Piro2
Apr 19, 2016Cumulonimbus
Hi,
You can't exclude file type violation based on URL.
you can try this irule to change URI before ASM and revert it after ASM. ASM may allow txt file type.
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/services/store-finder/" } {
set uri_orig [HTTP::uri]
HTTP::uri "/services/store-finder/fake.txt"
}
}
when HTTP_REQUEST_RELEASE {
if { [info exists uri_orig] && [HTTP::uri] eq "/services/store-finder/fake.txt" } {
HTTP::uri $uri_orig
unset uri_orig
}
}