These are my version's:
/usr/local/apache/conf/includes/pre_main_2.conf
/usr/local/apache/conf/httpd.conf
/usr/local/apache/conf/modsec2.conf
/usr/local/apache/conf/mod_security.conf
None of those files seem to allow this to work. Once I insert the code above in one of those files I restart httpd then I run an html page on one of my domains with that content, and all works fine.
So it's not filtering. Am I missing something? Or is it in the wrong place? Thanks.
Httpd:[email protected] [~]# grep -i release /home/cpeasyapache/src/modsecurity-apache_1.9.5/apache2/mod_security.c
#define MODULE_RELEASE "1.9.5"
#define MODULE_NAME_FULL (MODULE_NAME " v" MODULE_RELEASE " (Apache 2.x)")
ap_log_error(APLOG_MARK, APLOG_NOTICE | APLOG_NOERRNO, 0, s, "mod_security/%s configured - %s", MODULE_RELEASE, real_server_signature);
ap_log_error(APLOG_MARK, APLOG_NOTICE | APLOG_NOERRNO, 0, s, "mod_security/%s configured", MODULE_RELEASE);
I am trying to get mod_security to filter output content in an HTML page. I have tried putting this:Server version: Apache/2.2.21 (Unix)
Server built: Oct 28 2011 11:34:38
Cpanel::Easy::Apache v3.6.2 rev9999
In many different files with no success:SecFilterScanOutput On
SecFilterSelective OUTPUT "content to filter"
/usr/local/apache/conf/includes/pre_main_2.conf
/usr/local/apache/conf/httpd.conf
/usr/local/apache/conf/modsec2.conf
/usr/local/apache/conf/mod_security.conf
None of those files seem to allow this to work. Once I insert the code above in one of those files I restart httpd then I run an html page on one of my domains with that content, and all works fine.
So it's not filtering. Am I missing something? Or is it in the wrong place? Thanks.