Forum Discussion
iruler_85849
Apr 22, 2013Nimbostratus
Ok I am trying to work on an irule to allow an IP to a URI that contains matches a word in the path. but I am having no luck.. this is the irule I have in place
when HTTP_REQUEST {
if {( [string tolower [HTTP::path]] contains "/myword " )
and not ( [IP::addr [IP::client_addr] equals 127.0.0.01/32] ) } {
log local0. "dropped"
HTTP::respond 200 content "URL Blocked"
}
}