mirror of
https://github.com/fabriziosalmi/patterns.git
synced 2025-12-29 16:15:12 +00:00
Update: [Sun Dec 22 00:28:28 UTC 2024]
This commit is contained in:
@@ -670,6 +670,10 @@ map $http_user_agent $bad_bot {
|
||||
"~*zgrab" 1;
|
||||
default 0;
|
||||
}
|
||||
if ($bad_bot) {
|
||||
map $http_x_evil_bit $evil_bit_detected {
|
||||
default 0;
|
||||
"1" 1;
|
||||
}
|
||||
if ($bad_bot or $evil_bit_detected) {
|
||||
return 403;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user