throttle traffic on apache

sudo apt install apache2-utils

sudo apt install libapache2-mod-evasive

vi /etc/apache2/mods-enabled/evasive.conf

service apache restart

edit it and set values as per below or whatever else you like, the time quantities are seconds


    DOSSiteInterval     1

    DOSBlockingPeriod   10

    #DOSLogDir           "/var/lock/mod_evasive"


Popular posts from this blog

Pause a program which is using too much CPU

/var/log/journal taking up lots of space