Forum Discussion
mb_shankr
Nimbostratus
Nov 19, 2019Need to limit access for specific IP addresses to specific URI and allow rest all
Hi Everyone, Am trying to achieve the following conditions for a VIP on my f5: Allow 1.1.1.1 to access only https://abc.xyz.com/eee. All other URI on https://abc.xyz.com/ should be blocked f...
Nov 19, 2019
Hi,
when HTTP_REQUEST {
switch -glob [IP::client_addr] {
"1.1.1.1" { if { [HTTP::uri] ne "/eee" } { drop } }
"2.2.2.2" -
"3.3.3.3" -
"4.4.4.4" { if { [HTTP::uri] ne "/fff" } { drop } }
default {
if { [HTTP::uri] equals "/fff" } {
drop
} else {
pool abc.xyz.com-pool
}
}
}
}mb_shankr
Nimbostratus
Nov 19, 2019COOL!.. let me check this one and get back to you once done..
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