Amélioration de la gestion des logs
This commit is contained in:
@@ -35,9 +35,11 @@ http {
|
||||
error_page 502 /static/html/502.html;
|
||||
error_page 503 /static/html/503.html;
|
||||
|
||||
if ($http_user_agent ~* "Amazonbot|meta-externalagent|ClaudeBot|ahrefsbot|semrushbot") {
|
||||
return 444;
|
||||
}
|
||||
if ($http_user_agent ~* "Amazonbot|meta-externalagent|ClaudeBot|ahrefsbot|semrushbot") {
|
||||
return 444;
|
||||
}
|
||||
|
||||
}
|
||||
access_log /var/log/nginx/access.log;
|
||||
error_log /var/log/nginx/error.log warn;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user