Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Modsecurity brute force attack |
|
Author |
|
Quyet1990
Joined: 19 Oct 2013 Posts: 1 Location: Viet Nam
|
Posted: Mon 25 Nov '13 9:51 Post subject: Modsecurity brute force attack |
|
|
- Apache version: 1.8.2
- Windows Version: Windows XP SP3 32-bit
- PHP/5.4.19, MySQL version 5.5.32
I have 2 issues to ask people to consult:
1. To use the IP variable in ModSecurity, I need to know how to declare SecDataDir? The default is:
2. I have used this code to block brute force attacks on localhost/dvwa/login.php but without success.
Code: |
SecAction "initcol:ip=%{REMOTE_ADDR},pass,phase:1,id:'1001'"
SecRule REQUEST_URI "^/xampp/htdocs/dvwa/login.php" "id:'100',pass,phase:1,setvar:ip.attempts=+1,expirevar:ip.attempts=600"
SecRule REQUEST_URI "^/xampp/htdocs/dvwa/login.php" "id:'101',chain,pass,phase:3"
SecRule RESPONSE_STATUS "^2..$" "setvar:ip.attempts=0"
SecRule IP:ATTEMPTS "@gt 5" "id:'103'phase:1,deny" |
I'm confused the line:
Code: |
SecRule REQUEST_URI"^/xampp/htdocs/dvwa/login.php" |
i don't know how to declare URI with a path. I look forward to receiving your help. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Mon 25 Nov '13 12:33 Post subject: |
|
|
Best to ask your question at the mod_security user list : http://www.modsecurity.org/contact/
Experience is that they always want to help. |
|
Back to top |
|
|
|
|
|
|