Correct syntax to Merge 3 similar modsecurity rules

CAISC

Verified User
Joined
Dec 2, 2021
Messages
88
Location
SSH Terminal
Here are the modsecirty rules -

SecRule REQUEST_URI "@beginsWith /report" \
"id:700507,phase:1,t:none,nolog,pass,\
ctl:ruleRemoveById=60000192,\
ctl:ruleRemoveById=60000193"

SecRule REQUEST_URI "@beginsWith /account_manager" \
"id:700508,phase:1,t:none,nolog,pass,\
ctl:ruleRemoveById=60000192,\
ctl:ruleRemoveById=60000193"

SecRule REQUEST_URI "@beginsWith /application" \
"id:700509,phase:1,t:none,nolog,pass,\
ctl:ruleRemoveById=60000192,\
ctl:ruleRemoveById=60000193"

All are similar rules, just different path is specified, what will be the correct syntax to merge them

Thanks
 
Back
Top