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: Mod_evasive Windows X64 VC14 (AP 2.4). |
|
Author |
|
squidie
Joined: 26 May 2016 Posts: 2
|
Posted: Wed 01 Jun '16 11:17 Post subject: Mod_evasive Windows X64 VC14 (AP 2.4). |
|
|
Hello, I’m wanting to configure this mod for Windows Server 2012 using AP 2.4, I’ve come across this post already here https://www.apachelounge.com/viewtopic.php?t=5398 but I don’t have a copy of VS to do this.
Has anyone got any compiled binaries for this version?
Thanks. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Wed 01 Jun '16 12:19 Post subject: |
|
|
It is available on the download page here. |
|
Back to top |
|
squidie
Joined: 26 May 2016 Posts: 2
|
Posted: Fri 03 Jun '16 13:16 Post subject: |
|
|
Thanks, that’s one place I didn’t check!
I just have one question for anyone who has this configurd on Windows with AP; do we need to create a mod_evasive.conf? As per the ReadMe.txt it states to place the configurations in the httpd.conf which would suggest each time a new IP is blacklisted or we need to enter one we have to restart httpd.exe? |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Fri 03 Jun '16 18:01 Post subject: |
|
|
Q. Do you need to make a mod_evasive.conf?
A. No, and even if you did the answer to your second question would still remain the same.
Q. Will you need to restart Apache everytime you add an IP with DOSWhitelist?
A. Yes.
It is possible to modify the module to allow DOSWhitelist in .htaccess files. That way you should not have to restart everytime you add an IP in the .htaccess file as it is read at each request.
Whether it will work or not I do not know but I also cannot think of why it wouldn't. Of course it will slow down responses a little like all .htaccess files do.
Remember: The readme says to use DOSWhitelist sparingly or you will basically lose effectiveness of the module. This is probably why the author did not allow it's use in .htaccess.
Code: | --- mod_evasive2.c 2016-06-03 08:21:34.985600000 -0700
+++ mod_evasive2.c 2016-06-03 08:38:29.226200000 -0700
@@ -783,7 +783,7 @@
AP_INIT_TAKE1("DOSSystemCommand", get_system_command, NULL, RSRC_CONF,
"Set system command on DoS"),
- AP_INIT_ITERATE("DOSWhitelist", whitelist, NULL, RSRC_CONF,
+ AP_INIT_ITERATE("DOSWhitelist", whitelist, NULL, RSRC_CONF|OR_ALL,
"IP-addresses wildcards to whitelist"),
{ NULL }
|
|
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
|
Back to top |
|
|
|
|
|
|