Notes added on blockbots.conf and ddos.conf files

This commit is contained in:
Mitchell Krog UB1 2017-01-29 10:12:33 +02:00
parent 0841791b0b
commit 8f24f271aa
2 changed files with 27 additions and 6 deletions

View file

@ -1,11 +1,17 @@
####################################################################### #######################################################################
# Add this to your nginx vhost domain's config file within # Author: Mitchell Krog <mitchellkrog@gmail.com> - https://github.com/mitchellkrogza/
# the location contexts you want to rate limit and/or bot
# with 444 - just drop the connection completely # Include this in a vhost file within a server {} block using and include statement like below
# 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 # server {
# and all its locations. # #Config stuff here
# include /etc/nginx/bots.d/blockbots.conf
# include /etc/nginx/bots.d/ddos.conf
# #Other config stuff here
# }
#######################################################################
# BOTS # BOTS
# **** # ****

View file

@ -1,2 +1,17 @@
#######################################################################
# Author: Mitchell Krog <mitchellkrog@gmail.com> - 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_conn addr 200;
limit_req zone=flood burst=200 nodelay; limit_req zone=flood burst=200 nodelay;