Forum Discussion

jcrubaugh45_208's avatar
May 03, 2017

iRules to detect URI and give forbidden

Im needing a little help with my syntax it appears. Im new to iRules and this is what i think should be pretty simple... but getting syntax errors.. I appreciate any guidance..

 

when HTTP_REQUEST { if { ([HTTP::uri] contains "/uni-calendar") HTTP::respond 403 content {403 Unauthorized} } }