Minor update of WAF scripts

This commit is contained in:
Miroslav Stampar
2018-08-30 16:19:31 +02:00
parent aefb815064
commit db327a8538
4 changed files with 6 additions and 4 deletions

View File

@@ -24,6 +24,7 @@ def detect(get_page):
retval |= headers.get("cf-ray") is not None
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"))
if retval:
break