Graham_White_11
Feb 10, 2006Nimbostratus
discard command doing a re-direct
I have an issue where I am trying to drop requests based on either a specific domain being requested or a combination of a domain and a specific uri. Instead of being dropped the requests are being re-directed to our fall back host that we have specified in our http profile. I did the exact same thing in version 4.5 of the software and the requests were dropped properly. In version 9.2 I am getting this re-direction. I also tried the drop command with the same results. A snippet of the iRule syntax that I am using is below. Any thoughts?
when HTTP_REQUEST {
if { [HTTP::uri] equals "/somedir/x.php" and [HTTP::host] equals "domain.com" } {
discard
} elseif { [HTTP::host] ends_with "adifferentdomain.com" } {
discard