fixing subdomain check

pull/907/head
Adrian Maraj 2024-04-09 09:49:01 +02:00 committed by Raphaël Vinot
parent daf5102e8b
commit bebdbe77f6
1 changed files with 3 additions and 2 deletions

View File

@ -774,8 +774,9 @@ class Lookyloo():
match = re.match(pattern, hostnode.name)
if match:
for regex in domains:
ignore_domain = ".*\." + regex + "$"
if re.match(ignore_domain, match.group("domain")) and regex.strip():
ignore_domain = regex + "$"
ignore_subdomain = ".*\." + regex + "$"
if (re.match(ignore_domain, match.group("domain")) or re.match(ignore_subdomain, match.group("domain"))) and regex.strip():
return None
result = self.takedown_details(hostnode)
#ignoring mails