mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 18:50:13 +00:00
[V4] Adjust rate limiting / Fix beta tests
This commit is contained in:
parent
b2ac101dd7
commit
d1cdfd6573
3 changed files with 19 additions and 2 deletions
|
@ -35,6 +35,23 @@ echo "${bold}${green}Tests Starting"
|
||||||
echo "${bold}${green}--------------"
|
echo "${bold}${green}--------------"
|
||||||
printf "\n\n"
|
printf "\n\n"
|
||||||
|
|
||||||
|
# *********************
|
||||||
|
# Force reload of Nginx
|
||||||
|
# *********************
|
||||||
|
|
||||||
|
printf "\n"
|
||||||
|
echo "${bold}${green}------------"
|
||||||
|
echo "${bold}${green}Reload Nginx"
|
||||||
|
echo "${bold}${green}------------"
|
||||||
|
printf "\n"
|
||||||
|
sudo nginx -t && sudo nginx -s reload
|
||||||
|
|
||||||
|
echo "${bold}${yellow}-----------------------------------------------------------------------"
|
||||||
|
echo "${bold}${yellow}Sleeping for 10 seconds to allow Nginx to Properly Reload inside Travis"
|
||||||
|
echo "${bold}${yellow}-----------------------------------------------------------------------"
|
||||||
|
printf "\n\n"
|
||||||
|
sleep 10s
|
||||||
|
|
||||||
|
|
||||||
# *************************************************
|
# *************************************************
|
||||||
# Function Curl Test 1 - Check for Bad Bot "80legs"
|
# Function Curl Test 1 - Check for Bad Bot "80legs"
|
||||||
|
|
|
@ -17992,7 +17992,7 @@ geo $ratelimited {
|
||||||
# Rate limiting will only take effect if on any User-Agents with a value of 2
|
# Rate limiting will only take effect if on any User-Agents with a value of 2
|
||||||
|
|
||||||
limit_conn_zone $bot_iplimit zone=bot2_connlimit:16m;
|
limit_conn_zone $bot_iplimit zone=bot2_connlimit:16m;
|
||||||
limit_req_zone $bot_iplimit zone=bot2_reqlimitip:16m rate=6r/m;
|
limit_req_zone $bot_iplimit zone=bot2_reqlimitip:16m rate=12r/m;
|
||||||
|
|
||||||
# ==========================================
|
# ==========================================
|
||||||
# END SECTION 4 - ACTIVATE BLOCKER FUNCTIONS
|
# END SECTION 4 - ACTIVATE BLOCKER FUNCTIONS
|
||||||
|
|
|
@ -17992,7 +17992,7 @@ geo $ratelimited {
|
||||||
# Rate limiting will only take effect if on any User-Agents with a value of 2
|
# Rate limiting will only take effect if on any User-Agents with a value of 2
|
||||||
|
|
||||||
limit_conn_zone $bot_iplimit zone=bot2_connlimit:16m;
|
limit_conn_zone $bot_iplimit zone=bot2_connlimit:16m;
|
||||||
limit_req_zone $bot_iplimit zone=bot2_reqlimitip:16m rate=6r/m;
|
limit_req_zone $bot_iplimit zone=bot2_reqlimitip:16m rate=12r/m;
|
||||||
|
|
||||||
# ==========================================
|
# ==========================================
|
||||||
# END SECTION 4 - ACTIVATE BLOCKER FUNCTIONS
|
# END SECTION 4 - ACTIVATE BLOCKER FUNCTIONS
|
||||||
|
|
Loading…
Add table
Reference in a new issue