add code to increment blocked path access
Build and Push Docker Container / build-and-push (push) Successful in 1m21s

This commit is contained in:
2025-12-29 09:12:52 +01:00
parent 6280299770
commit 715af77a8c
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -38,6 +38,7 @@ async def custom_middleware():
# 3. If path contains honeypot targets
if await current_app.convex.is_path_blocked(path=path):
await logger.warning(f"[HONEYPOT] {method} | {client_ip} accessed {path}")
await current_app.convex.increment_blocked_path_access(path=path)
return await maybe_a_hacker()
await logger.info(f"{method} | {client_ip} had accessed the Side {path}")