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