You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: waf/wordfence.py
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,7 @@ def detect(get_page):
16
16
17
17
forvectorinWAF_ATTACK_VECTORS:
18
18
page, _, _=get_page(get=vector)
19
-
retval=re.search(r"This response was generated by Wordfence", pageor"", re.I) isnotNone
20
-
retval|=re.search(r"Your access to this site has been limited", pageor"", re.I) isnotNone
19
+
retval=any(_in (pageor"") for_in ("A potentially unsafe operation has been detected in your request to this site", "Generated by Wordfence", "Your access to this site has been limited", "This response was generated by Wordfence"))
0 commit comments