i want to filter html comments in the response body. So i used this:
SecContentInjection On
SecResponseBodyAccess On
SecStreamOutBodyInspection On
SecRule STREAM_OUTPUT_BODY "@rsub s/<!-.*?->/ /" "phase:4,t:none,nolog,pass"
this works but not if i have more than one line… for example:
<!-
bla
bla
bal
->
and how could i resolve this problem with mod_security 2.5 ?
regards,
kai
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
i want to filter html comments in the response body. So i used this:
SecContentInjection On
SecResponseBodyAccess On
SecStreamOutBodyInspection On
SecRule STREAM_OUTPUT_BODY "@rsub s/<!-.*?->/ /" "phase:4,t:none,nolog,pass"
this works but not if i have more than one line… for example:
<!-
bla
bla
bal
->
and how could i resolve this problem with mod_security 2.5 ?
regards,
kai