Forum Discussion
sandy16
Altostratus
Apr 18, 2016Latitude and Longitude values been displayed as illegal file types in ASM
Hi experts, I am having the ASM block the URLs that have the latitude and longitude values in them. It is getting triggered as "illegal file type".
Here`s a sample req -
GET /services/store-fi...
Stanislas_Piro2
Cumulonimbus
Apr 18, 2016Hi,
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
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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