Brian_Kenworthy
Aug 04, 2011Nimbostratus
Help me drop traffic with iRule
Hey all, I am trying to modify an iRule to drop traffic based on http::path, but it doesn't seem to be working. When I enter the URL www.mydomain.com/Admin, I keep getting to the default page but I want the traffic dropped (never display default page). Here is my iRule:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/client/order.aspx" -
"/client/status.aspx" {
pool uat.mydomain.com_B2B_HTTPS
}
"/ordersearch/*" {
pool search.mydomain.com_HTTPS
}
"/Admin/*" {
reject }
default {
pool uat.mydomain.com_HTTPS
}
}
}
Thanks in advance!!