Change access denied title check to use startswith. resolves #1574

This commit is contained in:
ilike2burnthing
2025-09-15 18:55:40 +01:00
committed by GitHub
parent 2dbb0442e0
commit cdc3db3c21

View File

@@ -315,7 +315,7 @@ def _evil_logic(req: V1RequestBase, driver: WebDriver, method: str) -> Challenge
# find access denied titles
for title in ACCESS_DENIED_TITLES:
if title == page_title:
if page_title.startswith(title):
raise Exception('Cloudflare has blocked this request. '
'Probably your IP is banned for this site, check in your web browser.')
# find access denied selectors