]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 27 Jun 2023 14:42:47 +0000 (16:42 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 27 Jun 2023 14:42:47 +0000 (16:42 +0200)
- also "ignore" (skip) these TLDs

fba/commands.py

index 3c244e2a999f83473ce223c102299c9d1d1d3e1c..e313243721deba0177d41e4b0d94cbb9925b48de 100644 (file)
@@ -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)