From: Roland Häder Date: Tue, 27 Jun 2023 14:42:47 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c8f4015f2dd8e4cc0cfc99e16544f64786956c29;p=fba.git Continued: - also "ignore" (skip) these TLDs --- diff --git a/fba/commands.py b/fba/commands.py index 3c244e2..e313243 100644 --- a/fba/commands.py +++ b/fba/commands.py @@ -285,6 +285,15 @@ def fetch_blocks(args: argparse.Namespace) -> int: if block["blocked"] == "": logger.warning("blocked is empty, blocker='%s'", blocker) continue + elif block["blocked"].endswith(".onion"): + logger.debug("blocked='%s' is a TOR .onion domain - SKIPPED", block["blocked"]) + continue + elif block["blocked"].endswith(".arpa"): + logger.debug("blocked='%s' is a reverse IP address - SKIPPED", block["blocked"]) + continue + elif block["blocked"].endswith(".tld"): + logger.debug("blocked='%s' is a fake domain - SKIPPED", block["blocked"]) + continue elif block["blocked"].find("*") >= 0: logger.debug("blocker='%s' uses obfuscated domains, marking ...", blocker) instances.set_has_obfuscation(blocker, True)