- skip fake domains (.tld)
- don't invoke instances.add() with fake domains (.tld)
elif instance.find("/profile/") > 0 or instance.find("/users/") > 0:
# DEBUG: print(f"DEBUG: instance='{instance}' is a link to a single user profile - SKIPPED!")
continue
+ elif instance.endswith(".tld"):
+ # DEBUG: print(f"DEBUG: instance='{instance}' is a fake domain - SKIPPED!")
+ continue
elif not instances.is_registered(instance):
# DEBUG: print("DEBUG: Adding new instance:", instance, domain)
instances.add(instance, domain, command)
raise Exception(f"domain='{domain}' is blacklisted, but method invoked")
elif domain.find("/profile/") > 0 or domain.find("/users/") > 0 or (software == "lemmy" and domain.find("/c/") > 0):
raise Exception(f"domain='{domain}' is a single user")
+ elif domain.endswith(".tld"):
+ raise ValueError(f"domain='{domain}' is a fake domain, please don't crawl them!")
if software is None:
try: