clamav support
This commit is contained in:
2
confs/modsecurity-clamav.conf
Normal file
2
confs/modsecurity-clamav.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
SecRule FILES_TMPNAMES "@inspectFile /opt/scripts/clamav.sh" \
|
||||
"phase:2,t:none,block,msg:'Virus found in uploaded file',id:'399999'"
|
||||
@@ -54,6 +54,9 @@ SecAuditLogRelevantStatus "^(?:5|4(?!04))"
|
||||
SecAuditLogType Serial
|
||||
SecAuditLog /var/log/modsec_audit.log
|
||||
|
||||
# scan uploaded files with clamv
|
||||
%USE_CLAMAV_UPLOAD%"
|
||||
|
||||
# include custom rules
|
||||
%MODSECURITY_INCLUDE_CUSTOM_RULES%
|
||||
|
||||
|
||||
Reference in New Issue
Block a user