f5now_28704
Jun 18, 2008Nimbostratus
IP Address based iRule
Im trying to block
---[HTTP::uri]] contains "/_grid/print/print_data.aspx"
from everyone with an IP not 10.0.0.0/8
I have one iRule.
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "/_grid/print/print_data.aspx" } {
HTTP::redirect "http://google.com"
}
}
I know that I can have the below somewhere but its just not adding up..
"inside network"-> if { [IP::addr [IP::client_addr]/8 equals 10.0.0.0] }
thanks for any direction.
BIG-IP 9.4.1 Build 29.2
R.