Forum Discussion
cjg3000_192116
Nimbostratus
Sep 17, 2018filtering traffic with irule
Hello, I'm trying to create an irule that will only allow traffic to the VIP if it matches a specific header, all other traffic should be dropped. Is there an easy way to accomplish this?
Lee_Sutcliffe
Nacreous
Sep 17, 2018You can use an Local Traffic policy to do this:
Or a simple iRule:
when HTTP_REQUEST {
if {!([HTTP::header exists "my-header-name"])} {
reject
}
}
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
