mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 10:40:36 +00:00
Notes added on blockbots.conf and ddos.conf files
This commit is contained in:
parent
0841791b0b
commit
8f24f271aa
2 changed files with 27 additions and 6 deletions
|
@ -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 <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
|
||||
# }
|
||||
|
||||
#######################################################################
|
||||
|
||||
# BOTS
|
||||
# ****
|
||||
|
|
|
@ -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_req zone=flood burst=200 nodelay;
|
Loading…
Add table
Reference in a new issue