From 33566af3fb609fc532c946a20aa1a22b6db3ab74 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Sun, 21 Dec 2025 01:44:40 -0500 Subject: [PATCH] Include flood reporting when API key is not valid to counter brute force attempts --- libretranslate/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/libretranslate/app.py b/libretranslate/app.py index 0265b00..4030acf 100644 --- a/libretranslate/app.py +++ b/libretranslate/app.py @@ -379,6 +379,7 @@ def create_app(args): 400, description=description, ) + flood.report(get_remote_address()) return f(*a, **kw) if args.metrics: