flask-Humanify 0.1.3__tar.gz → 0.1.3.2__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.2}/PKG-INFO +1 -1
  2. {flask_humanify-0.1.3 → flask_humanify-0.1.3.2/flask_Humanify.egg-info}/PKG-INFO +1 -1
  3. {flask_humanify-0.1.3 → flask_humanify-0.1.3.2}/flask_humanify/__init__.py +1 -1
  4. {flask_humanify-0.1.3 → flask_humanify-0.1.3.2}/flask_humanify/humanify.py +3 -0
  5. {flask_humanify-0.1.3 → flask_humanify-0.1.3.2}/flask_humanify/templates/oneclick_captcha.html +2 -2
  6. {flask_humanify-0.1.3 → flask_humanify-0.1.3.2}/pyproject.toml +1 -1
  7. {flask_humanify-0.1.3 → flask_humanify-0.1.3.2}/LICENSE +0 -0
  8. {flask_humanify-0.1.3 → flask_humanify-0.1.3.2}/MANIFEST.in +0 -0
  9. {flask_humanify-0.1.3 → flask_humanify-0.1.3.2}/README.md +0 -0
  10. {flask_humanify-0.1.3 → flask_humanify-0.1.3.2}/flask_Humanify.egg-info/SOURCES.txt +0 -0
  11. {flask_humanify-0.1.3 → flask_humanify-0.1.3.2}/flask_Humanify.egg-info/dependency_links.txt +0 -0
  12. {flask_humanify-0.1.3 → flask_humanify-0.1.3.2}/flask_Humanify.egg-info/requires.txt +0 -0
  13. {flask_humanify-0.1.3 → flask_humanify-0.1.3.2}/flask_Humanify.egg-info/top_level.txt +0 -0
  14. {flask_humanify-0.1.3 → flask_humanify-0.1.3.2}/flask_humanify/datasets/ipset.json +0 -0
  15. {flask_humanify-0.1.3 → flask_humanify-0.1.3.2}/flask_humanify/features/rate_limiter.py +0 -0
  16. {flask_humanify-0.1.3 → flask_humanify-0.1.3.2}/flask_humanify/ipset.py +0 -0
  17. {flask_humanify-0.1.3 → flask_humanify-0.1.3.2}/flask_humanify/templates/access_denied.html +0 -0
  18. {flask_humanify-0.1.3 → flask_humanify-0.1.3.2}/flask_humanify/templates/rate_limited.html +0 -0
  19. {flask_humanify-0.1.3 → flask_humanify-0.1.3.2}/flask_humanify/utils.py +0 -0
  20. {flask_humanify-0.1.3 → flask_humanify-0.1.3.2}/setup.cfg +0 -0
  21. {flask_humanify-0.1.3 → flask_humanify-0.1.3.2}/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.2
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.2
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.2"
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()
@@ -169,7 +169,7 @@
169
169
 
170
170
  <div class="images-row">
171
171
  {% for image in images %}
172
- <form action="{{ url_for('captchaify.verify') }}" method="POST">
172
+ <form action="{{ url_for('humanify.verify') }}" method="POST">
173
173
  <input type="hidden" name="return_url" value="{{ return_url }}">
174
174
  <input type="hidden" name="captcha_data" value="{{ captcha_data }}">
175
175
  <button type="submit" class="image-button" name="{{ loop.index }}" value="1">
@@ -180,7 +180,7 @@
180
180
  </div>
181
181
 
182
182
  {% if audio_challenge_available %}
183
- <a class="audio-challenge-link" href="{{ url_for('captchaify.audio_challenge', return_url=return_url) }}">
183
+ <a class="audio-challenge-link" href="{{ url_for('humanify.audio_challenge', return_url=return_url) }}">
184
184
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
185
185
  <path d="M10 1a1 1 0 0 1 1 1v13.59l1.29-1.29a1 1 0 1 1 1.42 1.42l-3 3a1 1 0 0 1-1.42 0l-3-3a1 1 0 0 1 1.42-1.42L9 15.59V2a1 1 0 0 1 1-1zm2-1a1 1 0 1 1 0 2 5 5 0 0 0-5 5 1 1 0 1 1-2 0 7 7 0 0 1 7-7zm2 3a1 1 0 1 1 0 2 3 3 0 0 0-3 3 1 1 0 1 1-2 0 5 5 0 0 1 5-5z" />
186
186
  </svg>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "flask-Humanify"
3
- version = "0.1.3"
3
+ version = "0.1.3.2"
4
4
  description = "Protect against bots and DDoS attacks"
5
5
  readme = "README.md"
6
6
  authors = [
File without changes