Forum Discussion
ibrahim_37929
Nimbostratus
Feb 01, 2017Masking http response with an i rule
Hi
When a http request comes to my application server and if the http address is invalid, some informations about application server technology coluld be seen by the users. So I want to hide applicat...
Stefan_Klotz
Cumulonimbus
Feb 02, 2017Hi Ibrahim,
assuming your "invalid" requests result in a non 200 OK Status Code (most likely 404), you could try this small iRule:
when HTTP_RESPONSE {
if {[HTTP::status] == 404}{
HTTP::respond 200 content "Invalid AddressYour address is invalid" noserver
}
}
Ciao Stefan 🙂
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