coreruleset / modsecurity-crs-docker

Official ModSecurity Docker + Core Rule Set (CRS) images
https://coreruleset.org
Apache License 2.0
269 stars 69 forks source link

How not to return 403 error code. #214

Closed git-SwitchBlade closed 7 months ago

git-SwitchBlade commented 7 months ago

So I have a usecase, where I don't want to return 403 access code, I am only interested in the log, that an SQLi attack has been detected, so that I can ingest that log in SIEM.

theseion commented 7 months ago

For a specific rule you'll have to modify the rule. If you don't want to block anything, you can simply set the engine to DetectionOnly. That will generate the logs without blocking anything.

git-SwitchBlade commented 7 months ago

Thanks for the help