add code to increment blocked path access
Build and Push Docker Container / build-and-push (push) Successful in 1m21s
Build and Push Docker Container / build-and-push (push) Successful in 1m21s
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user