Skip to content

Commit 205faf8

Browse files
committed
checking hostname too
1 parent 51159a2 commit 205faf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontera/worker/components/batch_generator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def _is_domain_blacklisted(self, request):
106106
if hostname:
107107
hostname = hostname.lower()
108108
second_level = suffix_list.get_public_suffix(hostname)
109-
if second_level in self.domains_blacklist:
109+
if second_level in self.domains_blacklist or hostname in self.domains_blacklist:
110110
self.logger.debug("Dropping black-listed URL %s", request.url)
111111
return True
112112
return False

0 commit comments

Comments
 (0)