Forum Discussion
3 Replies
Sort By
- Stanislas_Piro2Cumulonimbus
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 } }
- RonJMNimbostratusA wildcard file type? Something like this woud allow for any 6 digit file extension: [0-9][0-9][0-9][0-9][0-9][0-9]
- sandy16AltostratusThanks Ron, this works for a value that is exactly 6 digits. How about if they are more than that?