diff --git a/lib/firewall/powerful.py b/lib/firewall/powerful.py new file mode 100644 index 0000000..f1d0936 --- /dev/null +++ b/lib/firewall/powerful.py @@ -0,0 +1,17 @@ +import re + + +__item__ = "Powerful Firewall (MyBB plugin)" + + +def detect(content, **kwargs): + status = kwargs.get("status", None) + detection_schema = ( + re.compile(r"Powerful Firewall", re.I), + re.compile(r"http(s)?...tiny.cc.powerful.firewall", re.I) + ) + if status is not None: + if status == 403: + for detection in detection_schema: + if detection.search(content) is not None: + return True