Hello!
I want to block the brutforce scripts inquiries to "wp-login.php".
[23/Feb/2014:08:42:24 +0100] "POST /wp-login.php HTTP/1.0" 200 2818
I use ModSecurity without ASL and another added software!
I created rules:
But I receive in error_log Apache:
I don't know name directory for SecDataDir...
Also I am using mod_Ruid2 + DSO
I want to block the brutforce scripts inquiries to "wp-login.php".
[23/Feb/2014:08:42:24 +0100] "POST /wp-login.php HTTP/1.0" 200 2818
I use ModSecurity without ASL and another added software!
I created rules:
Code:
SecAuditLogType Concurrent
SecAction phase:1,nolog,pass,initcol:ip=%{REMOTE_ADDR},initcol:user=%{REMOTE_ADDR},id:5000134
<Locationmatch "/wp-login.php">
# Setup brute force detection.
# React if block flag has been set.
SecRule user:bf_block "@gt 0" "deny,status:401,log,id:5000135,msg:'ip address blocked for 5 minutes, more than 10 login attempts in 3 minutes.'"
# Setup Tracking. On a successful login, a 302 redirect is performed, a 200 indicates login failed.
SecRule RESPONSE_STATUS "^302" "phase:5,t:none,nolog,pass,setvar:ip.bf_counter=0,id:5000136"
SecRule RESPONSE_STATUS "^200" "phase:5,chain,t:none,nolog,pass,setvar:ip.bf_counter=+1,deprecatevar:ip.bf_counter=1/180,id:5000137"
SecRule ip:bf_counter "@gt 10" "t:none,setvar:user.bf_block=1,expirevar:user.bf_block=300,setvar:ip.bf_counter=0"
</locationmatch>
Code:
ModSecurity: Audit log: Failed to create subdirectories: logs/20140223/20140223-0846 (Permission denied)
ModSecurity: collection_retrieve_ex: Unable to retrieve collection (name "user", key "94.137.52.133"). Use SecDataDir to define data directory first.
Also I am using mod_Ruid2 + DSO
Last edited: