mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-05 20:20:02 +00:00
Updated Readme
This commit is contained in:
parent
d7d6cf060c
commit
3a058f9775
1 changed files with 6 additions and 6 deletions
12
README.md
12
README.md
|
@ -145,25 +145,25 @@ The configuration instructions below !!!!
|
||||||
|
|
||||||
####First Step:
|
####First Step:
|
||||||
|
|
||||||
sudo mkdir /etc/nginx/bots.d
|
`sudo mkdir /etc/nginx/bots.d `
|
||||||
- copy the blockbots.conf file into that folder
|
- copy the blockbots.conf file into that folder
|
||||||
- copy the ddos.conf file into the same folder
|
- copy the ddos.conf file into the same folder
|
||||||
|
|
||||||
####Second Step:
|
####Second Step:
|
||||||
|
|
||||||
sudo nano /etc/nginx/nginx.conf
|
`sudo nano /etc/nginx/nginx.conf`
|
||||||
|
|
||||||
#####Add the following rate limiting zones
|
#####Add the following rate limiting zones
|
||||||
|
|
||||||
`limit_req_zone $ratelimited zone=flood:50m rate=90r/s;
|
`limit_req_zone $ratelimited zone=flood:50m rate=90r/s;`
|
||||||
limit_conn_zone $ratelimited zone=addr:50m;`
|
`limit_conn_zone $ratelimited zone=addr:50m;`
|
||||||
|
|
||||||
####Third Step:
|
####Third Step:
|
||||||
|
|
||||||
Open a site config file for Nginx (just one for now) and add the following lines
|
Open a site config file for Nginx (just one for now) and add the following lines
|
||||||
|
|
||||||
`include /etc/nginx/bots.d/blockbots.conf;
|
`include /etc/nginx/bots.d/blockbots.conf;`
|
||||||
include /etc/nginx/bots.d/ddos.conf;`
|
`include /etc/nginx/bots.d/ddos.conf;`
|
||||||
|
|
||||||
####Fourth Step:
|
####Fourth Step:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue