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} } }

found my mistake…nevermind… :slight_smile: