mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-05 12:09:57 +00:00
parent
b68a2ebf64
commit
e8884cc31a
1 changed files with 4 additions and 4 deletions
|
@ -56,7 +56,7 @@
|
||||||
limit_conn bot2_connlimit 10;
|
limit_conn bot2_connlimit 10;
|
||||||
limit_req zone=bot2_reqlimitip burst=10;
|
limit_req zone=bot2_reqlimitip burst=10;
|
||||||
if ($bad_bot = '3') {
|
if ($bad_bot = '3') {
|
||||||
return 444;
|
return 444; # << Response Code Issued May Be Modified to Whatever you Choose ie. 404 but 444 wastes less of Nginxs time
|
||||||
}
|
}
|
||||||
|
|
||||||
# ---------------------
|
# ---------------------
|
||||||
|
@ -64,7 +64,7 @@ if ($bad_bot = '3') {
|
||||||
# ---------------------
|
# ---------------------
|
||||||
|
|
||||||
if ($bad_words) {
|
if ($bad_words) {
|
||||||
return 444;
|
return 444; # << Response Code Issued May Be Modified to Whatever you Choose ie. 404 but 444 wastes less of Nginxs time
|
||||||
}
|
}
|
||||||
|
|
||||||
# ------------------
|
# ------------------
|
||||||
|
@ -72,7 +72,7 @@ if ($bad_words) {
|
||||||
# ------------------
|
# ------------------
|
||||||
|
|
||||||
if ($bad_referer) {
|
if ($bad_referer) {
|
||||||
return 444;
|
return 444; # << Response Code Issued May Be Modified to Whatever you Choose ie. 404 but 444 wastes less of Nginxs time
|
||||||
}
|
}
|
||||||
|
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
|
@ -80,6 +80,6 @@ if ($bad_referer) {
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
|
|
||||||
if ($validate_client) {
|
if ($validate_client) {
|
||||||
return 444;
|
return 444; # << Response Code Issued May Be Modified to Whatever you Choose ie. 404 but 444 wastes less of Nginxs time
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue