mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2025-06-08 12:35:30 +00:00
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:
parent
b903a5dd84
commit
5fc4f966a5
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user