[common] detect DDoS-Guard challenge pages

This commit is contained in:
Mike Fährmann
2024-12-08 21:39:04 +01:00
parent 47311352de
commit 86f3f3f763

View File

@@ -212,6 +212,11 @@ class Extractor():
if b'name="captcha-bypass"' in content:
self.log.warning("Cloudflare CAPTCHA")
break
elif server and server.startswith("ddos-guard") and \
code == 403:
if b"/ddos-guard/js-challenge/" in response.content:
self.log.warning("DDoS-Guard challenge")
break
if code == 429 and self._handle_429(response):
continue