05-Jun-2020 08:37
Hi,
The below URL to be restricted to the specific set of IP addresses.
https://pbr.corp.com/exp-int-lifetime-mgmt/v1/sit
Also would like to match the complete URI in HTTP rather than the keywords.
but the main URL <https://pbr.corp.com/> should be accessible for Anybody.
Any help much appreciated...Thanks.
05-Jun-2020 22:23
Hello,
iRule given in below post should fulfill your requirement.
https://devcentral.f5.com/s/question/0D51T00007Xf8lOSAR/reverse-proxy-irule-to-restrict-the-access-on-ip?page=3
Hope it works!
Mayur
06-Jun-2020 03:26
Hi , In the URI match can i use complete URL ?
if {[HTTP::uri] eq "pbr.corp.com/exp-int-lifetime-mgmt/v1/sit"}
Thanks.
07-Jun-2020 23:41
Hello,
No, you can't use it in that way. You can use statement like given below,
if { [HTTP::host] equals "pbr.corp.com" and [HTTP::uri] equals "/exp-int-lifetime-mgmt/v1/sit" }
Hope it helps!
Mayur