Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support regex on colKey in ctlRuleRemoveTargetById / Tag / Msg #961

Open
zeylos opened this issue Jan 23, 2024 · 1 comment
Open

Support regex on colKey in ctlRuleRemoveTargetById / Tag / Msg #961

zeylos opened this issue Jan 23, 2024 · 1 comment

Comments

@zeylos
Copy link

zeylos commented Jan 23, 2024

Summary

Hello,

I'd like to be able to remove colKeys with ctlRuleRemoveTargetById matching regex.

Basic example

SecAction "id:1002,phase:1,pass,nolog,ctl:ruleRemoveTargetByTag=language-php;ARGS:/^variable_arg_.*$/"

Motivation

We have some auto-generated args with variable names (can be useful with cookies too), I'd like to keep using CRS but remove them from scanning.

@zeylos zeylos changed the title Support simple regex on colKey in ctlRuleRemoveTargetById / Tag / Msg Support regex on colKey in ctlRuleRemoveTargetById / Tag / Msg Jan 23, 2024
@jcchavezs
Copy link
Member

Related #718

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants