/
niceSOFT
/
libmodsecurity
Обзор
Документация
Войти
/
niceSOFT
/
libmodsecurity
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
v3/master
examples/multithread/basic_rules.conf
14 строк
548 B
Eduardo Arias
Adding multithreaded example from issue #3054 (by airween)
09 авг 2024, 21:34
09 авг 2024, 21:34
4bf9616
Код
Авторство
О чём код?
SecDebugLog debug.log SecDebugLogLevel 9 SecRule REQUEST_HEADERS:User-Agent ".*" "id:1,phase:1,t:sha1,t:hexEncode,setvar:tx.ua_hash=%{MATCHED_VAR}" SecAction "id:2,phase:2,initcol:ip=%{REMOTE_ADDR}_%{tx.ua_hash}" SecRule REQUEST_HEADERS:User-Agent "@rx .*" "id:3,phase:2,setvar:ip.auth_attempt=+1" SecRule ARGS:foo "@rx herewego" "id:4,phase:2,setvar:ip.foo=bar,expirevar:ip.foo=2" #SecRule ARGS:foo "@rx herewego" "id:4,phase:2,setvar:ip.foo=bar" SecRule IP "@rx bar" "id:5,phase:2,pass" SecRule IP:auth_attempt "@rx bar" "id:6,phase:2,pass"