Skip to content

Commit d7505d6

Browse files
committed
Improve challenge detection
1 parent f789fdc commit d7505d6

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

app/portable.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,15 @@ def process_html_document(html_content, original_url):
689689
"attention required",
690690
"enable javascript and cookies to continue",
691691
"please verify you are a human",
692+
# Imperva / Incapsula block pages (e.g. bizjournals.com). These are also
693+
# captured by archive.org, so an archived snapshot can silently be a block
694+
# page rather than the article — detect it and fall through to an error.
695+
"_incapsula_resource",
696+
"incapsula incident",
697+
"request unsuccessful",
698+
# DataDome block pages (e.g. nytimes.com, ft.com, wsj.com).
699+
"datadome",
700+
"enable js and disable any ad blocker",
692701
]
693702

694703

0 commit comments

Comments
 (0)