Forum Discussion
Preet_pk
Cirrus
Aug 10, 2022Prevent Banner grabbing in F5 via irule
Hi, We have multiple web applications running on a single Virtual server with host/domain based pool routing. For eg: red.lab.ae blue.labe.ae irule: when HTTP_REQUEST { switch [string tolower ...
Preet_pk
Cirrus
Aug 11, 2022Hi,
Can you share complete irule syntax so as to test it.
Aug 24, 2022
Hi Preet_pk
That would look something like this with the addition of the default option. I commented the other two options. More info on the switch operator is here: https://clouddocs.f5.com/api/irules/switch.html
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
red.lab.ae {
pool Red_Pool1
}
green.lab.ae {
pool Green_Pool1
}
default {
drop
# reject
# HTTP::respond 404 content "Not Found" noserver
}
}
}
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