Further narrowing down cloudfront WAF script (less FP on detection)

This commit is contained in:
Miroslav Stampar
2018-08-30 17:44:37 +02:00
parent 578c41f6de
commit a831865633
3 changed files with 3 additions and 4 deletions

View File

@@ -19,7 +19,6 @@ def detect(get_page):
_, headers, _ = get_page(get=vector)
retval = re.search(r"Error from cloudfront", headers.get("X-Cache", ""), re.I) is not None
retval |= headers.get("X-Amz-Cf-Id") is not None
if retval:
break