Minor update

This commit is contained in:
Miroslav Stampar
2018-10-02 13:48:39 +02:00
parent 9182b90b2b
commit d38a0542d8
3 changed files with 4 additions and 3 deletions

View File

@@ -25,6 +25,7 @@ def detect(get_page):
retval |= re.search(r"CloudFlare Ray ID:|var CloudFlare=", page or "") is not None
retval |= all(_ in (page or "") for _ in ("Attention Required! | Cloudflare", "Please complete the security check to access"))
retval |= all(_ in (page or "") for _ in ("Attention Required! | Cloudflare", "Sorry, you have been blocked"))
retval |= any(_ in (page or "") for _ in ("CLOUDFLARE_ERROR_500S_BOX", "::CAPTCHA_BOX::"))
if retval:
break