- prevent .arpa domains being added by instances.add()
if not validators.domain(blocked):
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!")
+ continue
elif not instances.is_registered(blocked):
# DEBUG: print("DEBUG: Hash wasn't found, adding:", blocked, blocker)
try:
if entry["blocked"] == blocked:
# DEBUG: print(f"DEBUG: Updating entry reason: blocked='{blocked}',reason='{reason}'")
entry["reason"] = reason
+
elif "quarantined_instances_info" in data and "quarantined_instances" in data["quarantined_instances_info"]:
# DEBUG: print(f"DEBUG: Found 'quarantined_instances_info' in JSON response: domain='{domain}'")
block_level = "quarantined"