From 9396bb2061b88b045836d4e5ecf33e65ee2bda0e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 30 Jun 2023 13:38:43 +0200 Subject: [PATCH] Continued: - lhr.life and localhost.run provide some tunnel service with tons of sub domains which causes the 'instances' table to flood - command 'fetch_fbabot_atom' is originating from ryona.agency --- fba/commands.py | 2 +- fba/helpers/blacklist.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fba/commands.py b/fba/commands.py index daf462b..5caa65f 100644 --- a/fba/commands.py +++ b/fba/commands.py @@ -691,7 +691,7 @@ def fetch_fbabot_atom(args: argparse.Namespace) -> int: for domain in domains: try: logger.info("Fetching instances from domain='%s' ...", domain) - federation.fetch_instances(domain, None, None, inspect.currentframe().f_code.co_name) + federation.fetch_instances(domain, "ryona.agency", None, inspect.currentframe().f_code.co_name) except network.exceptions as exception: logger.warning("Exception '%s' during fetching instances (fetch_fbabot_atom) from domain='%s'", type(exception), domain) instances.set_last_error(domain, exception) diff --git a/fba/helpers/blacklist.py b/fba/helpers/blacklist.py index 02c7b80..9057531 100644 --- a/fba/helpers/blacklist.py +++ b/fba/helpers/blacklist.py @@ -31,8 +31,9 @@ blacklist = [ "4chan.icu", # Flooder (?) "social.shrimpcam.pw", - # Flooder (?) "mastotroll.netz.org", + "lhr.life", + "localhost.run", # Testing/developing installations "ngrok.io", "ngrok-free.app", -- 2.39.5