logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: Mod_evasive Windows X64 VC14 (AP 2.4).
Author
squidie



Joined: 26 May 2016
Posts: 2

PostPosted: Wed 01 Jun '16 11:17    Post subject: Mod_evasive Windows X64 VC14 (AP 2.4). Reply with quote

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: 3047
Location: Hilversum, NL, EU

PostPosted: Wed 01 Jun '16 12:19    Post subject: Reply with quote

It is available on the download page here.
Back to top
squidie



Joined: 26 May 2016
Posts: 2

PostPosted: Fri 03 Jun '16 13:16    Post subject: Reply with quote

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

PostPosted: Fri 03 Jun '16 18:01    Post subject: Reply with quote

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. Smile

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

PostPosted: Fri 03 Jun '16 18:36    Post subject: Reply with quote

I compiled one for you if you want to try it.

https://www.apachehaus.net/modules/mod_evasive2/
Back to top


Reply to topic   Topic: Mod_evasive Windows X64 VC14 (AP 2.4). View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules