logger.debug("instance='%s'", instance)
if not validators.domain(instance, rfc_2782=True):
- logger.warning("instance='%s' is not a valid domain - SKIPPED!", instance)
+ logger.debug("instance='%s' is not a valid domain - SKIPPED!", instance)
+ continue
+ elif instance.endswith(".onion"):
+ logger.debug("instance='%s' is a TOR .onion instance - SKIPPED", instance)
+ continue
+ elif instance.endswith(".i2p") and not config.get("allow_i2p_instance"):
+ logger.debug("instance='%s' is an I2P .onion instance - SKIPPED", instance)
+ continue
+ elif instance.endswith(".arpa"):
+ logger.debug("instance='%s' is a reverse IP address - SKIPPED", instance)
+ continue
+ elif instance.endswith(".tld"):
+ logger.debug("instance='%s' is a fake instance - SKIPPED", instance)
continue
logger.debug("instance='%s' - BEFORE!", instance)