flask-Humanify 0.1.3__tar.gz → 0.1.3.1__tar.gz

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.
Files changed (21) hide show
  1. {flask_humanify-0.1.3/flask_Humanify.egg-info → flask_humanify-0.1.3.1}/PKG-INFO +1 -1
  2. {flask_humanify-0.1.3 → flask_humanify-0.1.3.1/flask_Humanify.egg-info}/PKG-INFO +1 -1
  3. {flask_humanify-0.1.3 → flask_humanify-0.1.3.1}/flask_humanify/__init__.py +1 -1
  4. {flask_humanify-0.1.3 → flask_humanify-0.1.3.1}/flask_humanify/humanify.py +3 -0
  5. {flask_humanify-0.1.3 → flask_humanify-0.1.3.1}/pyproject.toml +1 -1
  6. {flask_humanify-0.1.3 → flask_humanify-0.1.3.1}/LICENSE +0 -0
  7. {flask_humanify-0.1.3 → flask_humanify-0.1.3.1}/MANIFEST.in +0 -0
  8. {flask_humanify-0.1.3 → flask_humanify-0.1.3.1}/README.md +0 -0
  9. {flask_humanify-0.1.3 → flask_humanify-0.1.3.1}/flask_Humanify.egg-info/SOURCES.txt +0 -0
  10. {flask_humanify-0.1.3 → flask_humanify-0.1.3.1}/flask_Humanify.egg-info/dependency_links.txt +0 -0
  11. {flask_humanify-0.1.3 → flask_humanify-0.1.3.1}/flask_Humanify.egg-info/requires.txt +0 -0
  12. {flask_humanify-0.1.3 → flask_humanify-0.1.3.1}/flask_Humanify.egg-info/top_level.txt +0 -0
  13. {flask_humanify-0.1.3 → flask_humanify-0.1.3.1}/flask_humanify/datasets/ipset.json +0 -0
  14. {flask_humanify-0.1.3 → flask_humanify-0.1.3.1}/flask_humanify/features/rate_limiter.py +0 -0
  15. {flask_humanify-0.1.3 → flask_humanify-0.1.3.1}/flask_humanify/ipset.py +0 -0
  16. {flask_humanify-0.1.3 → flask_humanify-0.1.3.1}/flask_humanify/templates/access_denied.html +0 -0
  17. {flask_humanify-0.1.3 → flask_humanify-0.1.3.1}/flask_humanify/templates/oneclick_captcha.html +0 -0
  18. {flask_humanify-0.1.3 → flask_humanify-0.1.3.1}/flask_humanify/templates/rate_limited.html +0 -0
  19. {flask_humanify-0.1.3 → flask_humanify-0.1.3.1}/flask_humanify/utils.py +0 -0
  20. {flask_humanify-0.1.3 → flask_humanify-0.1.3.1}/setup.cfg +0 -0
  21. {flask_humanify-0.1.3 → flask_humanify-0.1.3.1}/setup.py +0 -0
@@ -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,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
@@ -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
  [project]
2
2
  name = "flask-Humanify"
3
- version = "0.1.3"
3
+ version = "0.1.3.1"
4
4
  description = "Protect against bots and DDoS attacks"
5
5
  readme = "README.md"
6
6
  authors = [
File without changes