flask-Humanify 0.1.3__py3-none-any.whl → 0.1.3.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ Flask-Humanify
4
4
  A Flask extension that protects against bots and DDoS attacks.
5
5
  """
6
6
 
7
- __version__ = "0.1.3"
7
+ __version__ = "0.1.3.1"
8
8
 
9
9
  from . import utils
10
10
  from .humanify import Humanify
@@ -133,6 +133,9 @@ class Humanify:
133
133
  """
134
134
  Before request hook.
135
135
  """
136
+ if request.endpoint in ["humanify.rate_limited", "humanify.access_denied"]:
137
+ return
138
+
136
139
  if self.is_bot:
137
140
  if action == "deny_access":
138
141
  return self.deny_access()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flask-Humanify
3
- Version: 0.1.3
3
+ Version: 0.1.3.1
4
4
  Summary: Protect against bots and DDoS attacks
5
5
  Author-email: TN3W <tn3w@protonmail.com>
6
6
  License-Expression: Apache-2.0
@@ -1,5 +1,5 @@
1
- flask_humanify/__init__.py,sha256=LxR6tCZClN04nVGXLyET5HGZ7mv0vOQrROj8Dvwe-M0,269
2
- flask_humanify/humanify.py,sha256=3tZx3RunXLVKGYJ6LukhsTuc-LFurMVf8pAQpMf0kUI,4213
1
+ flask_humanify/__init__.py,sha256=wE91Lv1ZwvLTLTjthmKY6CyYqWUy7KQAcbnXUyAYaL8,271
2
+ flask_humanify/humanify.py,sha256=aPzrHkDjFN6cSXCO-3ivvEDJ-7WsPGn8RSL1T2zAv9s,4325
3
3
  flask_humanify/ipset.py,sha256=ZZZRtgtddkZr2q1zuI6803hJQ8OodVHNdyZvZGqpmMI,10866
4
4
  flask_humanify/utils.py,sha256=CJ4FPhNJ75FuWcAn_ZuZkqRa9HR3jVvYOu9NZaN4L1o,2461
5
5
  flask_humanify/datasets/ipset.json,sha256=YNPqwI109lYkfvZeOPsoDH_dKJxOCs0G2nvx_s2mvqU,30601191
@@ -7,8 +7,8 @@ flask_humanify/features/rate_limiter.py,sha256=YhAh4xAZTiqdMbS028jA_v6FeZEB1v6Jt
7
7
  flask_humanify/templates/access_denied.html,sha256=Y7EzM53LRBMJBniczTWYvinHuPPFQVKrqvCmKaqLHak,3165
8
8
  flask_humanify/templates/oneclick_captcha.html,sha256=CnK4qTOdjIrlnFB8lytuK8pEcpj1dL5uYzj0ZNBkx-E,6241
9
9
  flask_humanify/templates/rate_limited.html,sha256=LSS1-c9F3YLxXF-jiyyNN6vIMoIAdmd6ObO1PDcjIxI,3110
10
- flask_humanify-0.1.3.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
11
- flask_humanify-0.1.3.dist-info/METADATA,sha256=fFcFNB3xEAp7HtSQjFvW9kH_bQpo1GGZUPhZ1NJLFoo,3048
12
- flask_humanify-0.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
13
- flask_humanify-0.1.3.dist-info/top_level.txt,sha256=9-c6uhxwCpPE3BJYge1Y9Z_bYmWitI0fY5RgqMiFWr0,15
14
- flask_humanify-0.1.3.dist-info/RECORD,,
10
+ flask_humanify-0.1.3.1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
11
+ flask_humanify-0.1.3.1.dist-info/METADATA,sha256=oNGn0u5Mof4nYFlPFyNzyT6OklHME4kD_5KKfodT6kI,3050
12
+ flask_humanify-0.1.3.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
13
+ flask_humanify-0.1.3.1.dist-info/top_level.txt,sha256=9-c6uhxwCpPE3BJYge1Y9Z_bYmWitI0fY5RgqMiFWr0,15
14
+ flask_humanify-0.1.3.1.dist-info/RECORD,,