F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

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