if not utils.is_domain_wanted(blocked):
logger.debug("blocked='%s' is not wanted - SKIPPED!", blocked)
continue
- elif blacklist.is_blacklisted(blocked):
- logger.debug("blocked='%s' is blacklisted - SKIPPED!", blocked)
- continue
elif not instances.is_registered(blocked):
logger.debug(f"Domain blocked='%s' wasn't found, adding ..., domain='%s',origin='%s',nodeinfo_url='%s'", blocked, domain, origin, nodeinfo_url)
instances.add(blocked, domain, inspect.currentframe().f_code.co_name, nodeinfo_url)
elif blocked.endswith(".tld"):
logger.debug("blocked='%s' is a fake domain - SKIPPED!", blocked)
continue
- elif blacklist.is_blacklisted(blocked):
- logger.debug("blocked='%s' is blacklisted - SKIPPED!", blocked)
- continue
elif blocked.count("*") > 0:
# Obscured domain name with no hash
row = instances.deobscure("*", blocked)
elif blocked.endswith(".tld"):
logger.debug("blocked='%s' is a fake domain - SKIPPED!", blocked)
continue
- elif blacklist.is_blacklisted(blocked):
- logger.debug("blocked='%s' is blacklisted - SKIPPED!", blocked)
- continue
elif blocked.count("*") > 0:
# Obscured domain name with no hash
row = instances.deobscure("*", blocked)
if blocked == "":
logger.warning("blocked is empty after tidyup.domain():", domain, block_level)
continue
- elif blacklist.is_blacklisted(blocked):
- logger.debug("blocked='%s' is blacklisted - SKIPPED!", blocked)
- continue
elif blocked.count("*") > 0:
# Obscured domain name with no hash
row = instances.deobscure("*", blocked)
if blocked == "":
logger.warning("blocked is empty after tidyup.domain():", domain, block_level)
continue
- elif blacklist.is_blacklisted(blocked):
- logger.debug("blocked='%s' is blacklisted - SKIPPED!", blocked)
- continue
elif blocked.count("*") > 0:
# Obscured domain name with no hash
row = instances.deobscure("*", blocked)
if blocked == "":
logger.warning("blocked is empty after tidyup.domain():", domain, block_level)
continue
- elif blacklist.is_blacklisted(blocked):
- logger.debug("blocked='%s' is blacklisted - SKIPPED!", blocked)
- continue
elif blocked.count("*") > 0:
# Obscured domain name with no hash
row = instances.deobscure("*", blocked)