peer = tidyup.domain(peer)
# DEBUG: print(f"DEBUG: peer='{peer}' - AFTER!")
- if blacklist.is_blacklisted(peer):
- # DEBUG: print(f"DEBUG: peer='{peer}' is blacklisted, skipped!")
+ if not validators.domain(peer):
+ print(f"WARNING: peer='{peer}' is not a valid domain - SKIPPED!")
+ continue
+ elif peer.endswith(".arpa"):
+ print(f"WARNING: peer='{peer}' is a domain for reversed IP addresses -SKIPPED!")
+ continue
+ elif peer.endswith(".tld"):
+ print(f"WARNING: peer='{peer}' is a fake domain - SKIPPED!")
+ continue
+ elif blacklist.is_blacklisted(peer):
+ print(f"WARNING: peer='{peer}' is blacklisted - SKIPPED!")
continue
# DEBUG: print(f"DEBUG: Adding peer='{peer}' ...")