Forum Discussion
Reginald_Sible1
Nimbostratus
Oct 27, 2015iRule to block anything containing /user thats not coming for internal network
iRule to block anything containing /user thats not coming for internal network specified in datagroup. I have the following logic but its for the entire url..how can I make it just /user on the VIP? ...
Vernon_97235
Oct 27, 2015Historic F5 Account
I assume you still want to match the Host header and you want to match anything starting with "/user":
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "domain.name.com" and not ([class match [IP::client_addr] equals sntru_net]) } {
switch -glob [HTTP::path] {
"/user" -
"/user/*" {
discard
}
}
}
}
You don't need the
default branch because selection of the assigned pool is what will happen by default already.Reginald_Sible1
Nimbostratus
Oct 27, 2015Thank you very much
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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