print(f"WARNING: blocked='{blocked}',software='{software}' is not a valid domain name - SKIPPED!")
continue
elif blocked.endswith(".arpa"):
- # DEBUG: print(f"DEBUG: blocked='{blocked}' is ending with '.arpa' - SKIPPED!")
+ # DEBUG: print(f"DEBUG: blocked='{blocked}' is a reverse IP domain - SKIPPED!")
+ continue
+ elif blocked.endswith(".tld"):
+ # DEBUG: print(f"DEBUG: blocked='{blocked}' is a fake domain - SKIPPED!")
continue
elif not instances.is_registered(blocked):
# DEBUG: print("DEBUG: Hash wasn't found, adding:", blocked, blocker)
# DEBUG: print(f"DEBUG: row='{row}' does not contain domain column")
continue
+ if not validators.domain(domain):
+ print(f"WARNING: domain='{domain}' is not a valid domain name - SKIPPED!")
+ continue
+ elif domain.endswith(".arpa"):
+ # DEBUG: print(f"DEBUG: domain='{domain}' is a reverse IP domain - SKIPPED!")
+ continue
+ elif domain.endswith(".tld"):
+ # DEBUG: print(f"DEBUG: domain='{domain}' is a fake domain - SKIPPED!")
+ continue
+ elif blacklist.is_blacklisted(domain):
+ # DEBUG: print(f"DEBUG: domain='{domain}' is blacklisted - SKIPPED!")
+ continue
+
# DEBUG: print(f"DEBUG: Marking domain='{domain}' as handled")
domains.append(domain)
print(f"INFO: Processing {len(domains)} domains ...")
for domain in domains:
+ # DEBUG: print(f"DEBUG: domain='{domain}'")
if domain == "":
+ # DEBUG: print("DEBUG: domain is empty - SKIPPED!")
+ continue
+ elif not validators.domain(domain):
+ print(f"WARNING: domain='{domain}' is not a valid domain name - SKIPPED!")
+ continue
+ elif domain.endswith(".arpa"):
+ # DEBUG: print(f"DEBUG: domain='{domain}' is a reverse IP domain - SKIPPED!")
+ continue
+ elif domain.endswith(".tld"):
+ # DEBUG: print(f"DEBUG: domain='{domain}' is a fake domain - SKIPPED!")
+ continue
+ elif blacklist.is_blacklisted(domain):
+ # DEBUG: print(f"DEBUG: domain='{domain}' is blacklisted - SKIPPED!")
continue
# DEBUG: print(f"DEBUG: domain='{domain}'")