Forum Discussion
youssef1
Jul 04, 2018Cumulonimbus
Hi,
try this:
when HTTP_REQUEST {
if { !([string tolower [HTTP::path]] starts_with "/rest/leads/callback" )
&& ( [IP::addr [IP::client_addr] equals 76.3.3.3/32] ) } {
log local0. "dropped"
HTTP::respond 200 content "URL Blocked"
}
}
You can also used data group if you have multiple URI, it can help you:
https://devcentral.f5.com/questions/restricting-access-to-uri-based-on-ip-address
Regards