Forum Discussion
DEJ
Apr 28, 2015Nimbostratus
Hello,
Depending on your VIP preference. The below irule will drop the traffic if neither value matches. If there is a match it will go to the default pool assigned to the VIP. If you need both values to match change or to and.
when HTTP_REQUEST {
Check if http_header contains hex code or the client IP is not in the allow list
if { !(([HTTP::header "name_of_header"] equals "3196E8D30330CA17238FAS013036") or ([class match [IP::client_addr] equals WHITELIST]))} {
if neither value matches drop traffic
drop
}
}