Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Excluding fields from RegularExpressionProtection

Hi,

I’m using “RegularExpressionProtection” policy in my Proxy, as shown below. This works fine, however I’ve certain fields in request which I want to exclude (don’t want this policy to trigger). However in documentation I couldn’t find any way of achieving this. Could you please suggest what are the options available for me?

<RegularExpressionProtection name="RegularExpressionProtection">

<Source>request</Source>

<JSONPayload escapeSlashCharacter="true">

<JSONPath>

<Expression>$.</Expression>

<Pattern><\s*script\b[^>]*>[^<]+<\s*\/\s*script\s*></Pattern>

<Pattern>n\s*\\\\\s*slash</Pattern>

<Pattern>n\s*\/\s*slash</Pattern>

<Pattern>n\s*\\"\s*quotes</Pattern>

<Pattern>n\s*\\b\s*space</Pattern>

<Pattern>n\s*\\f\s*forwardfeed</Pattern>

<Pattern>n\s*\\n\s*newline</Pattern>

<Pattern>n\s*\\r\s*carria</Pattern>

<Pattern>n\s*\\t\s*tab</Pattern>

<Pattern>n\s*\\uFFFF\s*hex</Pattern>

<Pattern>[\s]*((delete)|(exec)|(drop\s*table)|(insert)|(shutdown)|(update)|(\bor\b))</Pattern >

<Pattern><!--#(include|exec|echo|config|printenv)\s+.*</Pattern>

</JSONPath>

</JSONPayload>

</RegularExpressionProtection>

Cheers,

Mahesh

0 3 232
3 REPLIES 3