Forum Discussion
Birama_SY
Jul 05, 2019Nimbostratus
iRule for Whitelist basepath
He guys, I am new on F5 BIG-IP. I want to allow the url: https://test.biranetworxx.com/* and restrict the basepath https://test.biranetworxx.com/provider/test* for only one IP. https://test....
Heino
Cirrus
when HTTP_REQUEST {
set uristring [string tolower [HTTP::uri]]
switch $uritring {
"/test/blockeduri/" {
if { [IP::client_addr] equals x.x.x.x } {
#allowed ip
} else {
#blocked - wrong IP
drop
}
}
default {}
}
}
Should be something along these lines. Though if you have several IP adresses to whitelist I recommend doing it as a data-group.
Birama_SY
Jul 05, 2019Nimbostratus
Dear Heino
Thank you very much for your Time.
I will apply it and keep you informed
Best regards
Birama SY
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