All pastes #444524 Raw Edit

Untitled

public text v1 · immutable
·published 2007-04-17 11:35 UTC
rendered paste body
<IfDefine HAVE_EVASIVE>
  <IfModule !mod_evasive.c>
    LoadModule evasive_module    extramodules/mod_evasive.so
  </IfModule>
</IfDefine>

<IfModule mod_evasive.c>

    # Set size of hash table
    DOSHashTableSize 3097

    # Set maximum page hit count per interval
    DOSPageCount 2

    # Set maximum site hit count per interval
    DOSSiteCount 50

    # Set page interval
    DOSPageInterval 1

    # Set site interval
    DOSSiteInterval 1

    # Set blocking period for detected DoS IPs
    DOSBlockingPeriod 10

    # Set email notification
    #DOSEmailNotify root@localhost

    # Set log dir
    DOSLogDir /tmp

    # Set system command on DoS
    #DOSSystemCommand "su - someuser -c '/sbin/... %s ...'"

    # IP-addresses wildcards to whitelist
    #DOSWhitelist


</IfModule>