File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -396,40 +396,6 @@ SecRuleUpdateTargetById 942100 "!REQUEST_COOKIES:session_id"
396396
397397See: https://github.com/coreruleset/coreruleset/pull/4378
398398
399- ## OrderedActions
400-
401- ** Source:** ` src/crs_linter/rules/ordered_actions.py `
402-
403- Check that actions are in the correct order.
404-
405- This rule verifies that actions in rules follow the CRS-specified order.
406- The first action must be 'id', followed by 'phase', and then other
407- actions in their designated order.
408-
409- Example of a failing rule (wrong action order):
410-
411- ``` apache
412- SecRule REQUEST_URI "@beginsWith /index.php" \
413- "phase:1,\ # Wrong: phase should come after id
414- id:1,\
415- deny,\
416- t:none,\
417- nolog"
418- ```
419-
420-
421- Example of a correct rule:
422-
423- ``` apache
424- SecRule REQUEST_URI "@beginsWith /index.php" \
425- "id:1,\ # Correct: id comes first
426- phase:1,\ # Correct: phase comes second
427- deny,\
428- t:none,\
429- nolog"
430- ```
431-
432- >>>>>>> 0bea3ef (feat: add lint for no negated request_cookies)
433399## PlConsistency
434400
435401** Source:** ` src/crs_linter/rules/pl_consistency.py `
You can’t perform that action at this time.
0 commit comments