Forum Discussion
RRNF5
Nimbostratus
Sep 12, 2017Identify large download (Content-Length header) and manually disable ASM
I would like to an irule to identify large download, >50MB (Content-Length header) and manually disable ASM.
Any instructions would be much appreciated.
RRNF5
Nimbostratus
Sep 13, 2017when HTTP_RESPONSE {
Check if response content-length is greater than 52428800 (max_filtered_html_length)
if {([HTTP::header "content-length"] > 52428800) } {
Disable ASM Processing
ASM::disable
If below the content-length threshold, enable ASM processing
} else {
ASM::enable /Common/ASMPOLICYNAME
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
