justchil

Active Member
Aug 1, 2003
27
0
151
you're joking ... right?

cPanel.net Support Ticket Number:
 

B12Org

Well-Known Member
Jul 15, 2003
691
1
168
Seattle Washington
cPanel Access Level
Root Administrator
HOW TO INSTALL

APACHE v1.3
-----------

1. Extract this archive into src/modules in the Apache source tree

2. Run ./configure --add-module=src/modules/dosevasive/mod_dosevasive.c

3. make, install

4. Restart your server


If you are using the Ensim control panel, or some other wrapper that makes it
difficult to do the above, you can compile and install the module simply
by doing:

apxs -iac mod_dosevasive.c

And restarting Apache

APACHE v2.0
-----------

1. Extract this archive

2. Run $APACHE_ROOT/bin/apxs -i -a -c mod_dosevasive20.c

3. The module will be built and installed into $APACHE_ROOT/modules, and loaded into your httpd.conf

4. Restart your server

CONFIGURATION

mod_dosevasive has default options configured, but you may also add the
following block to your httpd.conf:

APACHE v1.3
-----------

<IfModule mod_dosevasive.c>
DOSHashTableSize 3097
DOSPageCount 2
DOSSiteCount 50
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 10
</IfModule>

APACHE v2.0
-----------
<IfModule mod_dosevasive20.c>
DOSHashTableSize 3097
DOSPageCount 2
DOSSiteCount 50
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 10
</IfModule>

Optionally you can also add the following directives:

DOSEmailNotify [email protected]
DOSSystemCommand "su - someuser -c '/sbin/... %s ...'"

You will also need to add this line if you are building with dynamic support:

APACHE v1.3
-----------

AddModule mod_dosevasive.c

APACHE v2.0
-----------

LoadModule dosevasive20_module modules/mod_dosevasive20.so

(This line is already added to your configuration by apxs)

cPanel.net Support Ticket Number:
 

Remi

Registered
Aug 17, 2003
4
0
151
B12Org

Thank you very very much, I realy can't describe how thanful and happy I am.

Thank you from the buttom of my heart I really mean it :D

one last thing please, Do I have to reinstall this module each time I use "easyapache" or updating the Apache does not break the installatin.

Thanks :)

cPanel.net Support Ticket Number:
 

B12Org

Well-Known Member
Jul 15, 2003
691
1
168
Seattle Washington
cPanel Access Level
Root Administrator
Yes, you will probably have to reinstall if you compile apache again, as it is an addon mod.

cPanel.net Support Ticket Number:
 

B12Org

Well-Known Member
Jul 15, 2003
691
1
168
Seattle Washington
cPanel Access Level
Root Administrator
Its worth it if you are worried about dos attacks. If you are not worried about it, then its probably not worth it.