F5_324021
Jul 24, 2017Cirrus
Block Specific URL from Specific Region
Hello ,
Im trying to block HTTPS request on specific URL from specific region and source IP address.
Is it possible to block specific URL from a source region?
Example we have 3 subdomains:- a)abc.xyz.com:should blocl all source IPs from region A b)efg.xyz.com should block all source IPs from region B
I have tried the below irule to block a specific IP address and applied it an an HTTPS VIP unfortunately its not working:-
when HTTP_REQUEST { if { ([string tolower [HTTP::uri]] contains "abc") and ( [IP::addr "x.x.x.x" equals [IP::client_addr]] ) } { drop } else { return } }
Hope someone could help.
Thank you in advance.