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)