cnt = 0
for row in domains:
logger.debug("row[]='%s'", type(row))
- if blacklist.is_blacklisted(row["domain"]):
+ if row["domain"].endswith(".i2p") and not config.get("allow_i2p_domain"):
+ logger.debug("row[domain]='%s' is an I2P address - SKIPPED", row["domain"])
+ continue
+ elif row["domain"].endswith(".onion"):
+ logger.debug("row[domain]='%s' is a TOR .onion domain - SKIPPED", row["domain"])
+ continue
+ elif row["domain"].endswith(".arpa"):
+ logger.debug("row[domain]='%s' is a reverse IP address - SKIPPED", row["domain"])
+ continue
+ elif row["domain"].endswith(".tld"):
+ logger.debug("row[domain]='%s' is a fake domain - SKIPPED", row["domain"])
+ continue
+ elif blacklist.is_blacklisted(row["domain"]):
logger.debug("row[domain]='%s' is blacklisted - SKIPPED!", row["domain"])
continue
elif not args.force and instances.is_recent(row["domain"], "last_nodeinfo"):