if blocked in [None, ""]:
logger.warning("line[]='%s' returned empty blocked domain - SKIPPED!", type(line))
continue
- elif not domain_helper.is_wanted(blocked):
+ elif blocked.find("*") == -1 and blocked.find("?") == -1 and not domain_helper.is_wanted(blocked):
logger.debug("blocked='%s' is not wanted - SKIPPED!", blocked)
continue
if blocked in [None, ""]:
logger.debug("blocked[%s]='%s' is empty after tidyup.domain(): tag.contents[0]='%s' - SKIPPED!", type(blocked), blocked, tag.contents[0])
continue
- elif not domain_helper.is_wanted(blocked):
+ elif blocked.find("*") == -1 and blocked.find("?") == -1 and not domain_helper.is_wanted(blocked):
logger.debug("blocked='%s' is not wanted - SKIPPED!", blocked)
continue
if blocked in [None, ""]:
logger.warning("instance[host]='%s' is None or empty after tidyup.domain() - SKIPPED!", instance["host"])
continue
- elif not domain_helper.is_wanted(blocked):
+ elif blocked.find("*") == -1 and blocked.find("?") == -1 and not domain_helper.is_wanted(blocked):
logger.debug("blocked='%s' is not wanted - SKIPPED!", blocked)
continue
elif "isSuspended" in instance and instance["isSuspended"] and not dict_helper.has_key(blocklist, "blocked", blocked):
logger.debug("blocked[%s]='%s' is empty after tidyup.domain(): domain='%s',block_level='%s' - SKIPPED!", type(blocked), blocked, domain, block_level)
continue
elif not domain_helper.is_tld_wanted(blocked):
- logger.debug("blocked='%s' is not wanted - SKIPPED!", blocked)
+ logger.debug("blocked='%s' has unwanted TLD - SKIPPED!", blocked)
continue
elif validators.domain(blocked, rfc_2782=True) and blacklist.is_blacklisted(blocked):
logger.debug("blocked='%s' is blacklisted - SKIPPED!")
logger.debug("blocked[%s]='%s' is empty after tidyup.domain(): domain='%s',block_level='%s'", type(blocked), blocked, domain, block_level)
continue
elif not domain_helper.is_tld_wanted(blocked):
- logger.debug("blocked='%s' is not wanted - SKIPPED!", blocked)
+ logger.debug("blocked='%s' has an unwanted TLD - SKIPPED!", blocked)
continue
elif validators.domain(blocked, rfc_2782=True) and blacklist.is_blacklisted(blocked):
logger.debug("blocked='%s' is blacklisted - SKIPPED!")
if blocked in [None, ""]:
logger.debug("domain='%s',block_level='%s': blocked='%s' is empty - SKIPPED!", domain, block_level, blocked)
continue
- elif not domain_helper.is_wanted(blocked):
+ elif blocked.find("*") == -1 and blocked.find("?") == -1 and not domain_helper.is_wanted(blocked):
logger.debug("blocked='%s' is not wanted - SKIPPED!", blocked)
continue