Forum Discussion
Snl
Cirrostratus
Apr 18, 2017ASM 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
- Kevin_Davies_40
Nacreous
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 } }
- nag_54823
Cirrostratus
Hi Snl,
You can change the response page content in application security > blocking > response pages
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