Forum Discussion

Snl's avatar
Snl
Icon for Cirrostratus rankCirrostratus
Apr 18, 2017

ASM hide support id external access

Hello Folks

 

I have requirement from customer to hide the ASM support id page external and send only block message in response when hit blocked url.

 

is it possible to do this in ASM , just to send the block message rather than support id page details etc.

 

any help appreciated.

 

2 Replies

  • Yes you can do this via an iRule as follows. Anything not in the 10.10.10 network will get the custom page.

    when ASM_REQUEST_BLOCKING {
        if { ! ([IP::client_addr] starts_with "10.10.10.")} {
           set response "REQUEST BLOCKEDPlease contact support at 1800 234 234 for assistance"
           ASM::payload replace 0 [ASM::payload length] ""
           ASM::payload replace 0 0 $response
           set asm_payload_length [ASM::payload length]
        }
    }
    when HTTP_RESPONSE_RELEASE {
       if {[info exists asm_payload_length]} {
           HTTP::header replace Content-Length $asm_payload_length
       }
    }
    
  • Hi Snl,

     

    You can change the response page content in application security > blocking > response pages