Forum Discussion
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!!
- Kevin_Davies_40NacreousBecause /Admin/ will never match /Admin
- boomchke_11156NimbostratusGood catch Jarvil! Sometimes you just need a second pair of eyes on these.
- Brian_KenworthyNimbostratusThanks Jarvil!! Many, many great second pairs of eyes on these forums. Thanks again!
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