aiwaf 0.1.8.1__tar.gz → 0.1.8.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.
Potentially problematic release.
This version of aiwaf might be problematic. Click here for more details.
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/PKG-INFO +1 -1
- aiwaf-0.1.8.2/aiwaf/templatetags/aiwaf_tags.py +13 -0
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/aiwaf.egg-info/PKG-INFO +1 -1
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/pyproject.toml +1 -1
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/setup.py +1 -1
- aiwaf-0.1.8.1/aiwaf/templatetags/aiwaf_tags.py +0 -14
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/LICENSE +0 -0
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/README.md +0 -0
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/aiwaf/__init__.py +0 -0
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/aiwaf/apps.py +0 -0
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/aiwaf/blacklist_manager.py +0 -0
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/aiwaf/management/__init__.py +0 -0
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/aiwaf/management/commands/__init__.py +0 -0
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/aiwaf/management/commands/add_ipexemption.py +0 -0
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/aiwaf/management/commands/aiwaf_reset.py +0 -0
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/aiwaf/management/commands/detect_and_train.py +0 -0
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/aiwaf/middleware.py +0 -0
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/aiwaf/models.py +0 -0
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/aiwaf/resources/model.pkl +0 -0
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/aiwaf/storage.py +0 -0
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/aiwaf/templatetags/__init__.py +0 -0
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/aiwaf/trainer.py +0 -0
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/aiwaf/utils.py +0 -0
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/aiwaf.egg-info/SOURCES.txt +0 -0
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/aiwaf.egg-info/dependency_links.txt +0 -0
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/aiwaf.egg-info/requires.txt +0 -0
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/aiwaf.egg-info/top_level.txt +0 -0
- {aiwaf-0.1.8.1 → aiwaf-0.1.8.2}/setup.cfg +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from django import template
|
|
2
|
+
from django.utils.html import format_html
|
|
3
|
+
from django.conf import settings
|
|
4
|
+
|
|
5
|
+
register = template.Library()
|
|
6
|
+
|
|
7
|
+
@register.simple_tag
|
|
8
|
+
def honeypot_field(field_name=None):
|
|
9
|
+
"""
|
|
10
|
+
Legacy honeypot field - no longer needed with timing-based honeypot.
|
|
11
|
+
Returns empty string to maintain backward compatibility.
|
|
12
|
+
"""
|
|
13
|
+
return ""
|
|
@@ -9,7 +9,7 @@ long_description = (HERE / "README.md").read_text(encoding="utf-8")
|
|
|
9
9
|
|
|
10
10
|
setup(
|
|
11
11
|
name="aiwaf",
|
|
12
|
-
version="0.1.8.
|
|
12
|
+
version="0.1.8.2",
|
|
13
13
|
description="AI‑driven, self‑learning Web Application Firewall for Django",
|
|
14
14
|
long_description=long_description,
|
|
15
15
|
long_description_content_type="text/markdown",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
from django import template
|
|
2
|
-
from django.utils.html import format_html
|
|
3
|
-
from django.conf import settings
|
|
4
|
-
|
|
5
|
-
register = template.Library()
|
|
6
|
-
|
|
7
|
-
@register.simple_tag
|
|
8
|
-
def honeypot_field(field_name=None):
|
|
9
|
-
|
|
10
|
-
name = field_name or getattr(settings, "AIWAF_HONEYPOT_FIELD", "hp_field")
|
|
11
|
-
return format_html(
|
|
12
|
-
'<input type="text" name="{}" hidden autocomplete="off" tabindex="-1" />',
|
|
13
|
-
name
|
|
14
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|