Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Identify 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.

0
Rate this Question
Comments on this Question
Comment made 2 months ago by RRNF5 3

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
0

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

This works great

0