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 ...
Kevin_Davies_40
Nacreous
Apr 18, 2017Yes 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
}
}
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