Skip to content

Commit 00ea331

Browse files
refactor: update traffic monitoring as shared rule
1 parent ab94cb9 commit 00ea331

1 file changed

Lines changed: 27 additions & 10 deletions

File tree

assets/rulesTemplate.json

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,33 @@
161161
"criteriaMustSatisfy": "all",
162162
"comments": ""
163163
},
164+
{
165+
"name": "Traffic Monitoring",
166+
"children": [],
167+
"behaviors": [
168+
{
169+
"name": "rewriteUrl",
170+
"options": {
171+
"behavior": "REGEX_REPLACE",
172+
"matchRegex": "^(?:/__integration_path__(?:/__result_path__)?)?(?:/([^?]*))?\\??.*$",
173+
"targetRegex": "/$1?ii=fingerprint-pro-akamai/{{user.PMUSER_FPJS_INTEGRATION_VERSION}}/ingress&{{builtin.AK_QUERY}}",
174+
"matchMultiple": false,
175+
"keepQueryString": true
176+
}
177+
}
178+
],
179+
"criteria": [
180+
{
181+
"name": "requestMethod",
182+
"options": {
183+
"matchOperator": "IS",
184+
"value": "POST"
185+
}
186+
}
187+
],
188+
"criteriaMustSatisfy": "all",
189+
"comments": ""
190+
},
164191
{
165192
"name": "Origin for Agent",
166193
"children": [
@@ -405,16 +432,6 @@
405432
"options": {
406433
"enable": true
407434
}
408-
},
409-
{
410-
"name": "rewriteUrl",
411-
"options": {
412-
"behavior": "REGEX_REPLACE",
413-
"matchMultiple": false,
414-
"keepQueryString": true,
415-
"matchRegex": "\\/__integration_path__\\/__result_path__(.*)",
416-
"targetRegex": "/?ii=fingerprint-pro-akamai/{{user.PMUSER_FPJS_INTEGRATION_VERSION}}/ingress&{{builtin.AK_QUERY}}"
417-
}
418435
}
419436
],
420437
"criteria": [

0 commit comments

Comments
 (0)