remove nginx perl module & block ai bots

Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
Zoey
2024-01-21 23:37:59 +01:00
parent 4bfb9b799a
commit 1045ccf592
4 changed files with 24 additions and 5 deletions

View File

@@ -16,6 +16,10 @@ if ($query_string ~ "[a-zA-Z0-9_]=http://") {
return 403;
}
if ($query_string ~ "[a-zA-Z0-9_]=https://") {
return 403;
}
if ($query_string ~ "[a-zA-Z0-9_]=(\.\.//?)+") {
return 403;
}
@@ -48,3 +52,19 @@ if ($query_string ~ "mosConfig_[a-zA-Z_]{1,21}(=|\%3D)") {
if ($query_string ~ "base64_(en|de)code\(.*\)") {
return 403;
}
if ($http_user_agent ~ "Google-Extended") {
return 403;
}
if ($http_user_agent ~ "GPTBot") {
return 403;
}
if ($http_user_agent ~ "ChatGPT-User") {
return 403;
}
if ($http_user_agent ~ "CCBot") {
return 403;
}