Forum Discussion

ahmed_ismail_21's avatar
ahmed_ismail_21
Icon for Nimbostratus rankNimbostratus
Jun 05, 2016

why F5 give me this error

looking for close parenthesis}][{($allowed == 0) and ([HTTP::uri] end_with "/register")}]

 

when CLIENT_ACCEPTED { set allowed 0 if { [ class match -- [whereis [IP::client_addr] country] equals "EG"] or [[ whereis [IP::client_addr] country ] not equals "EG" ] } { set allowed 1 } } when HTTP_REQUEST { if {($allowed == 0) and ([HTTP::uri] end_with "/register")} { HTTP::respond 403 content "Blocked!"} }

 

guys kindly advise

 

27 Replies