Forum Discussion
2 Replies
Sort By
- AnupamG_354580Nimbostratus
Dears , Eagerly waiting for a response ; I am a newbie to irules
- youssef1Cumulonimbus
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