fix blacklist matching

This commit is contained in:
cynthia 2025-04-05 11:30:50 +00:00
parent e764c5e6f3
commit 323a47dd46

View file

@ -116,7 +116,7 @@ def add_urls(urls):
title = html.title.string if html.title is not None else ""
if blacklist_file is not None:
for row in blacklist_file.itertuples():
if row[1] in title:
if row[1].lower() in title.lower():
print_colors('[+] Forbidden word found. Rejecting.')
forbidden = True
if forbidden: