syntax error?

This commit is contained in:
vasco
2026-05-31 15:18:35 +01:00
parent 8136c49f50
commit fdc85d9109

View File

@@ -1,11 +1,11 @@
SecRuleEngine On SecRuleEngine On
SecRequestBodyAccess On SecRequestBodyAccess On
SecResponseBodyAccess Off SecResponseBodyAccess Off
SecDebugLog /var/log/modsecurity/debug.log #SecDebugLog /var/log/modsecurity/debug.log
SecDebugLogLevel 0 SecDebugLogLevel 0
SecAuditLogParts ABIJ SecAuditLogParts ABIJ
SecAuditLogType Serial SecAuditLogType Serial
SecAuditLog /var/log/modsecurity/audit.log #SecAuditLog /var/log/modsecurity/audit.log
# SQL Injection protection # SQL Injection protection
SecRule ARGS "(?i)(union(\s+all)?\s+select|select\s+.*\s+from|insert\s+into|update\s+.*\s+set|delete\s+from|drop\s+table|or\s+1=1|--|#|/\*|\*/|\bexec\b|\bexecute\b)" "id:'950001',phase:2,deny,status:403,msg:'SQL Injection Attack Detected',log" SecRule ARGS "(?i)(union(\s+all)?\s+select|select\s+.*\s+from|insert\s+into|update\s+.*\s+set|delete\s+from|drop\s+table|or\s+1=1|--|#|/\*|\*/|\bexec\b|\bexecute\b)" "id:'950001',phase:2,deny,status:403,msg:'SQL Injection Attack Detected',log"