Update comments > blockbots.conf > Response Code

REF: #409
This commit is contained in:
Mitchell Krog 2020-12-02 09:33:49 +02:00 committed by GitHub
parent b68a2ebf64
commit e8884cc31a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
} }