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
when 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
- RRNF5
Nimbostratus
This works great
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