Forum Discussion

Brian_Kenworthy's avatar
Icon for Nimbostratus rankNimbostratus
Aug 04, 2011

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, I keep getting to the default page but I want the traffic dropped (never display default page). Here is my iRule:





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!!