Thanks. I was just reading the error message too literally. It told me that the URL needed to start with ^/ when it really just means that it needs to start with a /
Sr. Manager - Digital Architect
Original Message:
Sent: 06-04-2024 12:33
From: Jaired Anderson
Subject: Imperva Security Rule URL Starts With
Hi Tyler,
Click the blue "+Add" button to "build" the rule.
You will see it will populate the Editor window, and you will notice that when you select "starts with" it will be displayed in the editor window as "^/example".
This is because the rule is being represent/displayed in a quasi-regex form. In regex, "^" denotes the beginning of a string.
If you were to use "ends with" as the filter, you will see it displayed as "/example$" because in regex "$" denotes the end of a string.
You can string multiple filters together by continuing to add criteria. For example:
This rule will match if the URL starts with /example and the client is originating from Great Britian.
You can also use a semi colon to define multiple paths.
For more information on the syntax, please see: https://docs.imperva.com/bundle/cloud-application-security/page/rules/rule-syntax.htm
------------------------------
Jaired Anderson
Imperva
https://www.imperva.com/
Original Message:
Sent: 06-04-2024 12:04
From: Tyler Sigley
Subject: Imperva Security Rule URL Starts With
I'm trying to create some Security rules, and I can't get a "URL Starts with" rule to save. It keeps telling me that I need to have a ^/ in the URL. I'm not sure what I'm doing wrong...
#AllImperva
#CloudWAF(formerlyIncapsula)
------------------------------
Tyler Sigley
Sr. Manager - Digital Architect
British American Shared Services (GSD) Limited
London
------------------------------