Update ddos-guard title (#692)

* update ddos-guard title (anidex.info)

* make page_title test case-insensitive

---------

Co-authored-by: bilditup1 <git@github.com>
This commit is contained in:
bilditup1 2023-03-20 10:06:27 -04:00 committed by GitHub
parent b903a5dd84
commit 5fc4f966a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ CHALLENGE_TITLES = [
# Cloudflare # Cloudflare
'Just a moment...', 'Just a moment...',
# DDoS-GUARD # DDoS-GUARD
'DDOS-GUARD', 'DDoS-Guard'
] ]
CHALLENGE_SELECTORS = [ CHALLENGE_SELECTORS = [
# Cloudflare # Cloudflare
@ -253,9 +253,9 @@ def _evil_logic(req: V1RequestBase, driver: WebDriver, method: str) -> Challenge
# find challenge by title # find challenge by title
challenge_found = False challenge_found = False
for title in CHALLENGE_TITLES: for title in CHALLENGE_TITLES:
if title == page_title: if title.lower() == page_title.lower():
challenge_found = True challenge_found = True
logging.info("Challenge detected. Title found: " + title) logging.info("Challenge detected. Title found: " + page_title)
break break
if not challenge_found: if not challenge_found:
# find challenge by selectors # find challenge by selectors