1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-23 12:52:31 +03:00

Rate limiting

Fixes #12
This commit is contained in:
Artyom 2016-05-03 02:32:30 +03:00
parent 92d8c53776
commit 3c3b3354c3

View File

@ -98,6 +98,28 @@ Start the daemon:
$ service guide start
## DoS protection
To protect against possible DoS attacks, you might use `mod_evasive`:
$ apt-get install libapache2-mod-evasive
Edit the settings in `/etc/apache2/mods-available/evasive.conf`:
DOSHashTableSize 3097
DOSPageCount 4
DOSSiteCount 10
DOSPageInterval 10
DOSSiteInterval 10
DOSBlockingPeriod 10
I'm not sure what they mean *precisely*, but seems to work.
Enable the mod and restart:
$ a2enmod evasive
$ service apache2 restart
## Database
You can set automatic backups of the database to your own repository.