Hello,
I am trying to dissable a single rule for a domain.
No Matter what i do, modsec keeps blocking the script.
In my vhost.conf
<LocationMatch .*>
<IfModule mod_security2.c>
SecRuleRemoveById 350148
</IfModule>
</LocationMatch>
After iI change the vhsot.conf is run: /usr/local/psa/admin/bin/websrvmng -u --vhost-name=thedomain.co.za
I also tried to dissable modsec for the domain
<LocationMatch .*>
<IfModule mod_security2.c>
SecRuleEngine Off
</IfModule>
</LocationMatch>
I also tried to dissable modsec just for the script
<LocationMatch /admin/photographers_edit.php>
<IfModule mod_security2.c>
SecRuleEngine Off
</IfModule>
</LocationMatch>
No Matter what I do - I get the same result.
[Tue Jul 05 13:18:22 2011] [error] [client 41.185.108.125] ModSecurity: [file "/etc/httpd/modsecurity.d/10_asl_rules.conf"] [line "1025"] [id "350148"] [rev "53"] [msg "Atomicorp.com WAF Rules: Potentially Untrusted Web Content Detected "] [data "14519"] [severity "CRITICAL"] Access denied with code 403 (phase 2). Pattern match "(?:< ?(?:(?:img|i?frame) ?src|a ?href) ?= ?(?:ogg|gopher|zlib|(ht|f)tps?)\\:/|alert ?\\(|<? (?:(?:java|vb)?script|applet|activex|chrome) ?>|" ?> ?<|" ?[a-z]+ ?<.*>|> ?"? ?>|< ?/?i?frame|\\%env)" at ARGS:clients. [hostname "www.thedomain.co.za"] [uri "/admin/photographers_edit.php"] [unique_id "pEY1sU4uOc0AAEmCwBgAAAAB"]