Otto Schlagmichtot | 2 Feb 22:01
Picon
Favicon

filter html comments

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 " <at> 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
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
mod-security-users mailing list
mod-security-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-security-users
Commercial ModSecurity Rules and Support from Trustwave's SpiderLabs:
http://www.modsecurity.org/projects/commercial/rules/
http://www.modsecurity.org/projects/commercial/support/

Gmane