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.
![](https://higherlogicdownload.s3.amazonaws.com/IMPERVA/MessageImages/852aea1f2dfe4bfca3b2449ca0fe5ab6.png)
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:
![](https://higherlogicdownload.s3.amazonaws.com/IMPERVA/MessageImages/40df1f8bd60a417988c23fd95c0b34b5.png)
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.
![](https://higherlogicdownload.s3.amazonaws.com/IMPERVA/MessageImages/a1c15120d5594cfea339aac8e7cefcde.png)
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
------------------------------