mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 18:50:13 +00:00
Update globalblacklist-testing.template [Super Rate Limiting Feature]
Ref: #568
This commit is contained in:
parent
3d20ebe1b2
commit
292a160c22
1 changed files with 7 additions and 0 deletions
|
@ -18973,6 +18973,7 @@ geo $ratelimited {
|
|||
0 "";
|
||||
1 "";
|
||||
2 $binary_remote_addr;
|
||||
4 $binary_remote_addr;
|
||||
}
|
||||
|
||||
# --------------------------
|
||||
|
@ -18985,6 +18986,12 @@ geo $ratelimited {
|
|||
limit_conn_zone $bot_iplimit zone=bot2_connlimit:16m;
|
||||
limit_req_zone $bot_iplimit zone=bot2_reqlimitip:16m rate=2r/s;
|
||||
|
||||
# BAD BOT SUPER RATE LIMITING ZONE
|
||||
# Super Rate limiting will only take effect if on any User-Agents with a value of 4
|
||||
|
||||
limit_conn_zone $bot_iplimit zone=bot4_connlimit:16m;
|
||||
limit_req_zone $bot_iplimit zone=bot4_reqlimitip:16m rate=1r/m;
|
||||
|
||||
# ==========================================
|
||||
# END SECTION 4 - ACTIVATE BLOCKER FUNCTIONS
|
||||
# ==========================================
|
||||
|
|
Loading…
Add table
Reference in a new issue