From 8f24f271aa896fb24ad03a92844b9dfe3a9ec67a Mon Sep 17 00:00:00 2001 From: Mitchell Krog UB1 Date: Sun, 29 Jan 2017 10:12:33 +0200 Subject: [PATCH] Notes added on blockbots.conf and ddos.conf files --- bots.d/blockbots.conf | 18 ++++++++++++------ bots.d/ddos.conf | 15 +++++++++++++++ 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/bots.d/blockbots.conf b/bots.d/blockbots.conf index 1655473b2..d09b05c73 100644 --- a/bots.d/blockbots.conf +++ b/bots.d/blockbots.conf @@ -1,11 +1,17 @@ ####################################################################### -# Add this to your nginx vhost domain's config file within -# the location contexts you want to rate limit and/or bot -# with 444 - just drop the connection completely -# You can also add it to the very top of your host config file -# before any of your location contexts and it will apply to the whole site -# and all its locations. +# Author: Mitchell Krog - https://github.com/mitchellkrogza/ + +# Include this in a vhost file within a server {} block using and include statement like below + +# server { +# #Config stuff here +# include /etc/nginx/bots.d/blockbots.conf +# include /etc/nginx/bots.d/ddos.conf +# #Other config stuff here +# } + +####################################################################### # BOTS # **** diff --git a/bots.d/ddos.conf b/bots.d/ddos.conf index ea8296153..d8e057ae4 100644 --- a/bots.d/ddos.conf +++ b/bots.d/ddos.conf @@ -1,2 +1,17 @@ +####################################################################### + +# Author: Mitchell Krog - https://github.com/mitchellkrogza/ + +# Include this in a vhost file within a server {} block using and include statement like below + +# server { +# #Config stuff here +# include /etc/nginx/bots.d/blockbots.conf +# include /etc/nginx/bots.d/ddos.conf +# #Other config stuff here +# } + +####################################################################### + limit_conn addr 200; limit_req zone=flood burst=200 nodelay; \ No newline at end of file