mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Renames examples/multithread_c to multiprocess_c
This commit is contained in:
14
examples/multiprocess_c/basic_rules.conf
Normal file
14
examples/multiprocess_c/basic_rules.conf
Normal file
@@ -0,0 +1,14 @@
|
||||
SecDebugLog /dev/stdout
|
||||
SecDebugLogLevel 9
|
||||
|
||||
|
||||
SecRule REQUEST_HEADERS:User-Agent ".*" "id:1,phase:1,t:sha1,t:hexEncode,setvar:tx.ua_hash=%{MATCHED_VAR}"
|
||||
|
||||
SecAction "phase:2,initcol:ip=%{REMOTE_ADDR}_%{tx.ua_hash}"
|
||||
|
||||
SecRule REQUEST_HEADERS:User-Agent ".*" "id:2,phase:2,setvar:ip.auth_attempt=+1"
|
||||
|
||||
SecRule ARGS:foo "herewego" "id:3,phase:2,setvar:ip.foo=bar"
|
||||
SecRule IP "bar" "id:4,phase:2"
|
||||
SecRule IP:auth_attempt "bar" "id:5,phase:2"
|
||||
|
Reference in New Issue
Block a user